Initial Commit
This commit is contained in:
49
inc/limitations/class-limit-disk-space.php
Normal file
49
inc/limitations/class-limit-disk-space.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* Limit manager for sites.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Objects
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
||||
namespace WP_Ultimo\Limitations;
|
||||
|
||||
// Exit if accessed directly
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Limit manager for sites.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
class Limit_Disk_Space extends Limit {
|
||||
|
||||
/**
|
||||
* The module id.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @var string
|
||||
*/
|
||||
protected $id = 'disk_space';
|
||||
|
||||
/**
|
||||
* The check method is what gets called when allowed is called.
|
||||
*
|
||||
* Each module needs to implement a check method, that returns a boolean.
|
||||
* This check can take any form the developer wants.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param mixed $value_to_check Value to check.
|
||||
* @param mixed $limit The list of limits in this modules.
|
||||
* @param string $type Type for sub-checking.
|
||||
* @return bool
|
||||
*/
|
||||
public function check($value_to_check, $limit, $type = '') {
|
||||
|
||||
return true;
|
||||
|
||||
} // end check;
|
||||
|
||||
} // end class Limit_Disk_Space;
|
Reference in New Issue
Block a user