检查邮箱
@return $this
346372
public function email() {
        $this->check_role = 'email';
        $result = $this->filter($this->value, FILTER_VALIDATE_EMAIL);
        $this->checkResult($result);
        return $this;
    }
51140
public function search()
	{
		preg_match_all('/\[[^\]]*\]/', $this->str, $this->matches);		

		// Format matches
		if(!empty($this->matches))
		{
			$this->matches = $this->matches[0];
			$this->format();
		}

		return $this;
	}
503926
public function add()
    {
        $args = func_get_args();
        foreach( $args as $arg ) {
            if( is_array($arg) ) {
                foreach( $arg as $value ) {
                    $this[] = $value;
                }
            } else {
                $this[] = $arg;
            }
        }
        return $this;
    }
375981
public function remove()
    {
        $args = func_get_args();
        
        if (count($args) == 0) {
            return $this;
        }
        
        $last = array_pop($args);
        
        $pointer = &$this->data;
        foreach ($args as $i => $step) {
            if (!isset($pointer[$step])
                || !is_array($pointer[$step])
            ) {
                return $this;
            }

            $pointer = &$pointer[$step];
        }
        
        unset($pointer[$last]);
        
        return $this;
    }
1289332
public function only()
    {
        $args = func_get_args();
        $this->properties = array_merge($this->properties, $args);
        return $this;
    }
408325
public function validate()
    {
        $context = array_merge(['input' => $this], $this->context);
        $values = $this->getValue();
        if (!is_array($values)) {
            $this->valid = $this->getValidationChain()
                ->validates($this->getValue(), $context);
            return $this;
        }
        $this->validateArray($values, $context);
        return $this;
    }
199709
public function register()
    {
        $this->container['translator'] = function ($container) {
            $config = $container['config']->get('translator');

            $translator = new Translator($config->get('paths', [])->toArray());

            // 别名设置
            foreach ($config->get('aliases', []) as $key => $value) {
                $translator->alias($key, $value->toArray());
            }

            // 默认语言类型
            $translator->default(value($config->default));

            // 导入必须的语言包
            $translator->import($config->get('required', [])->toArray());

            return $translator;
        };
    }
640949
public function uninitialize() {
		if (empty($this->_initialized)) {
			return $this;
		}
		
		foreach (array_keys($this->_initialized) as $property) {
			unset($this->_data[$property]);
		}
		
		return $this;
	}
628223
public function stop()
    {
        $time = microtime(true);
        $this->time += $time - $this->start;
        $this->start = $time;
        return $this;
    }
444812
public function init()
    {
        foreach ($this->dynamic as $key => $data) {
            $field = &$this->items[$key];

            foreach ($data as $property => $call) {
                $action = 'dynamic' . ucfirst($call['action']);

                if (method_exists($this, $action)) {
                    $this->{$action}($field, $property, $call);
                }
            }
        }

        return $this;
    }
405701
public function commit() {
		
		if(null === $this -> connection) {
			$this -> connect();
		}

		$this -> connection -> commit();
		$this -> connection -> autocommit(true);

		return $this;
	}
37237
public function clear () {
        $this->_data = null;
        $this->_count = null;
        $this->getConnection ()->getClient ()->delete ($this->name);
        return $this;
    }
156537
public function delete()
    {
        $where = [static::$primary_key => $this->getPrimaryKey()];

        $this->connection->delete(static::$table, $where);
        $this->setStored(false);

        return $this;
    }
622202
public function delete()
    {
        $this->eventsManager->fireEvent('model:beforeDelete', $this);

        static::query(null, $this)->where($this->_getPrimaryKeyValuePairs())->delete();

        $this->eventsManager->fireEvent('model:afterDelete', $this);

        return $this;
    }
597772
public function row() {
        $this->rows[] = [];
        $this->currentRow =& $this->rows[count($this->rows) - 1];
        return $this;
    }
1215267
public function run()
	{
		$this->resultset = $this->connection->select($this->query);
		$this->numFound = $this->resultset->getNumFound();
		$this->results = $this->getResults();
		$this->resultsFacetSet = $this->resultset->getFacetSet();
		return $this;
	}
875529
public function show()
    {
        $this->block->collapse->attributes->removeAttributeClass('hide');
        $this->block->collapse->attributes->addAttributeClass('show');

        return $this;
    }