Regla not_null: analiza que el campo no sea null
@param string $name
@param mixed $value
@return boolean
435025
protected function not_null($name, $value){
        if($value === NULL){
            $this->add_message($name, 'not_null');
            return FALSE;
        }
        return TRUE;
    }
1138433
protected function hasParameter(array $params, $name, $value = null)
    {
        $found = in_array($name, $params);
        if (is_null($value) || !$found) {
            return $found;
        }
        $paramValueIndex = array_search($name, $params) + 1;
        return isset($params[$paramValueIndex]) && ($params[$paramValueIndex] == $value);
    }
819200
public function button($value, $name = null) 
	{
		Argument::i()
			->test(1, 'string')
			->test(2, 'string', 'null')
			->test(3, 'bool');
		
		$field = Button::i()->setValue($value);
		
		if(!is_null($name)) {
			$field->setName($name);
		}
		
		return $field;
	}
435505
public function getValueAttribute($name, $value = null)
    {
        if (is_null($name)) {
            return $value;
        }

        if (! is_null($value)) {
            return $value;
        }
    }
1207065
public function is_extension($name, $value, $extensions){
        if(! $this->not_empty($name, $value)){
            return TRUE;
        }
        $extensions= explode(',', $extensions);
        $ok= TRUE;
        if($this->isMultiple($value)){
            foreach ($value['name'] as $name) {
                $ext = pathinfo($name, PATHINFO_EXTENSION);
                if (in_array($ext, $extensions)){
                    $ok= FALSE;
                    break;
                }
            }
        }else{
            $ext = pathinfo($value['name'], PATHINFO_EXTENSION);
            $ok= (in_array($ext, $extensions));
        }        
        
        if($ok){
            return TRUE;
        }else{
            $this->add_message($name, 'is_extension', array('extensions' => $extensions));
            return FALSE;
        }
    }
320855
public function set($name, $value)
    {
        try {
            if (is_string($name) && (is_string($value) || $value === null)) {
                if ($value === null) {
                    if (!array_key_exists($name, $this->defaults)) {
                        return false;
                    }
                    $value = $this->defaults[$name];
                }
                if ((new Query)->from(static::tableName())->where(['name' => $name])->exists()) {
                    Podium::getInstance()->db->createCommand()->update(
                        static::tableName(), ['value' => $value], ['name' => $name]
                    )->execute();
                } else {
                    Podium::getInstance()->db->createCommand()->insert(
                        static::tableName(), ['name' => $name, 'value' => $value]
                    )->execute();
                }
                $this->cache->set('config', $this->notCached);
                $this->_config = null;
                return true;
            }
        } catch (Exception $e) {
            Log::error($e->getMessage(), null, __METHOD__);
        }
        return false;
    }
1721
public function item($name, $value = null, $literal = null)
    {
        $literal = is_null($literal) ? $this->isLiteral() : $literal;

        func_num_args() < 2 || $this->items[$name] = $value;

        if (!$literal) {
            return $this->find($name, $this->items);
        }

        isset($this->items[$name]) || $this->throwKeyDoesNotExist($name);

        return $this->items[$name];
    }
808283
public function containsHeader(string $name, string $value = null): bool
    {
        if ($this->headers->contain($name)) {
            if (null !== $value) {
                return $value === $this->headers[$name];
            }

            return true;
        }

        return false;
    }
332103
public static function post(String $name = NULL, $value = NULL)
    {
        return self::_method($name, $value, $_POST ,__FUNCTION__);
    }
925853
protected function evalDestination($value, $name)
    {
        $result = ($value === static::VALUE_BROWSER || $value === 'file');
        if ($result === false) {
            $this->pool->messages->addMessage(static::KEY_CONFIG_ERROR . ucfirst($name));
        }

        return $result;
    }
136065
public function container(string $name, $value=null)
  {
    # Getting or Setting the value?
    if (is_null($value)) {
      # Return what $name has stored in $container array
      $value = $this->container[$name] ?? null;

    } else {
      # Setting the container value $name to $value
      $this->container[$name] = $value;

    }

    return $value;
  }
333808
public function not_error($name, $value){
        if(! $this->not_empty($name, $value)){
            return TRUE;
        }
        $error= 0;
        if($this->isMultiple($value)){
            foreach ($value['error'] as $errorType) {
                if($errorType != 0){
                    $error= $errorType;
                    break;
                }
            }
        }else{
            $error= $value['error'];
        }
        
        if($error == 0){
            return TRUE;
        }else{
            $this->add_message($name, 'error_file' . $error);
            return FALSE;
        }
    }
767180
public function value( $name, $value = null )
    {
        if ( is_array( $name ) ) {
            $this->values += $name;
        } elseif ( func_num_args() > 1 ) {
            $this->values[ $name ] = $value;
        }
        return $this;
    }
1221201
public function containsCookie(string $name, string $value = null): bool
    {
        if (isset($this->cookies[$name])) {
            if (null !== $value) {
                return $this->cookies[$name]->value() === $value;
            }

            return true;
        }

        return false;
    }
654811
protected function is_boolean($name, $value){
        //Si no se completo no se valida
        if(! $this->isComplete($value)){
            return TRUE;
        }
        if(! is_bool($value)){
            if($value != "0" && $value != "1"){
                $this->add_message($name, 'is_boolean');
                return FALSE;
            }
        }
        return TRUE;
    }
239688
public function whereNot($name, $operator = "=", $value = NULL)
    {

        if (is_callback_function($name)) {
            $name($this);
            return $this;
        }

        if (!$this->isOperator($operator)) {
            $value = $operator;
            $operator = "=";
        }

        if ($operator == "=") {
            $this->must_not[] = ["term" => [$name => $value]];
        }

        if ($operator == ">") {
            $this->must_not[] = ["range" => [$name => ["gt" => $value]]];
        }

        if ($operator == ">=") {
            $this->must_not[] = ["range" => [$name => ["gte" => $value]]];
        }

        if ($operator == "<") {
            $this->must_not[] = ["range" => [$name => ["lt" => $value]]];
        }

        if ($operator == "<=") {
            $this->must_not[] = ["range" => [$name => ["lte" => $value]]];
        }

        if ($operator == "like") {
            $this->must_not[] = ["match" => [$name => $value]];
        }

        if ($operator == "exists") {
            $this->whereExists($name, !$value);
        }

        return $this;
    }
391469
public function getValueAttribute($name, $value = null)
    {
        if (is_null($name)) {
            return $value;
        }

        if (!str_contains($name, ['[', ']']) && !is_null($this->old($name))) {
            return $this->old($name);
        }


        if (!is_null($value)) {
            return $value;
        }

        if (isset($this->model)) {
            return $this->getModelValueAttribute($name);
        }
    }