锁定表
@param array $option
@return bool
770215
public function lockTable($option = null)
	{
		if(empty($option))
		{
			return false;
		}
		else
		{
			$sql = 'lock table ';
			foreach($option as $tableName => $type)
			{
				$sql .= $tableName . ' ' . $type . ',';
			}
			return $this->execute(substr($sql, 0, -1));
		}
	}
365629
public function forLevel($option)
    {
        // Only return issues matching the level.
        $filter = function ($issue) use ($option) {
            if ($issue->matches($option)) {
                return true;
            }

            return false;
        };

        return $this->select($filter);
    }
530146
public function set_option($options = array()) {
        $options['issuerid'] = clean_param($options['issuerid'], PARAM_INT);
        $options['controlledlinkfoldername'] = clean_param($options['controlledlinkfoldername'], PARAM_TEXT);

        $ret = parent::set_option($options);
        return $ret;
    }
1321247
public function delete($options = array())
    {
        $this->__preDelete();

        if ($this->_exist) {
            $deleted =  $this->_connection->remove($this->collectionName(), array("_id" => $this->getId() ), $options);
            if ($deleted) {
                $this->_exist = false;
            }
        }
        $this->__postDelete();

        return true;
    }
468691
public function getOption($option)
    {
        return isset($this->getOptions()[$option]) ? $this->getOptions()[$option] : null;
    }
626558
public function clean($option = [])
    {
        if ($this->active) {
            return $this->phpFastCache->instance->clean($option);
        }

        return false;
    }
508664
public function setOptions(array $options) {
    foreach ($options as $key => $value) {
      if (is_int($key)) {
        $option  = '--' . $value;
      }
      elseif (strlen($key) == 1) {
        $option = '-' . $key;
        if (!empty($value)) {
          $option .= ' ' . escapeshellarg($value);
        }
      }
      else {
        // Do not render --uri=default.
        if ($key == 'uri' && $value == 'default') {
          continue;
        }
        $option = '--' . $key;
        if (!empty($value)) {
          $option .= '=' . escapeshellarg($value);
        }
      }
      if (!in_array($option, $this->options)) {
        $this->options[] = $option;
      }
    }
    return $this;
  }
951814
protected function registerOption($option)
    {
        if (!in_array($option, $this->validOptions)) {
            array_push($this->validOptions, $option);
        }

        return $this;
    }
797044
public function setOption($option, $value = '')
    {
        if (is_array($option)) {
            foreach ($option as $key => $value) {
                $this->options[$key] = $value;
            }
        }
        else {
            $this->options[$option] = $value;
        }

        return $this;
    }
1295193
public function Get($option)
    {
        if(isset($this->preferences[$option]))
        {
            return $this->preferences[$option];
        }

        return false;
    }
955898
public function init($option)
    {
        $this->_option = $option;

        // 密码学方式
        $this->method = $this->getOption('method');
        if (empty($this->method)) {
            throw new \Exception('加密method为空');
        }

        // key
        $this->key = $this->getOption('key');
        if (empty($this->key)) {
            throw new \Exception('加密key为空');
        }

        // 向量
        $this->iv = $this->getOption('iv');

        // 检验向量长度
        $ivLength = openssl_cipher_iv_length($this->method);
        if (strlen($this->iv) != $ivLength) {
            throw new \Exception('[' . $this->method . ']的iv长度应该为' . $ivLength);
        }
    }
631760
public static function ensureValid($option)
    {
        if (is_string($option)) {
            $option = strtolower($option);
        }

        if (!self::isValid($option)) {
            $option = is_scalar($option) ? $option : gettype($option);

            $parts = explode('\\', __CLASS__);
            $class = array_pop($parts);

            throw new EnumException(sprintf('"%s" is not a valid %s option.', $option, $class));
        }

        return $option;
    }
60430
public function match(array $options) {
        if (isset($options['element'])) {
            if (isset($this->data[$options['element']])) {
                if ($this->elementData == $this->data[$options['element']]) {
                    return true;
                }
            } else {
                return true;
            }
        } else if (isset($options['value'])) {
            if ($this->elementData == $options['value']) {
                return true;
            }
        }

        $this->addError($this->checkMessage('Values mismatch', $options));
        return false;
    }
161959
public function setFetchFlagsOption($option) {
        if (is_bool($option)) {
            $this->fetch_flags = $option;
        } elseif (is_null($option)) {
            $config = config('imap.options.fetch_flags', true);
            $this->fetch_flags = is_bool($config) ? $config : true;
        }

        return $this;
    }
1111284
public function getOption($option) {
		if ($option instanceOf Argument) {
			$obj = $option;
			$option = $option->value;
		}

		if (isset($this->_options[$option])) {
			return $this->_options[$option];
		}

		foreach ($this->_options as $master => $settings) {
			if (in_array($option, (array)$settings['aliases'])) {
				if (isset($obj)) {
					$obj->key = $master;
				}

				return $settings;
			}
		}
	}
1192789
final protected function get($option)
    {
        if (array_key_exists($key = "$option", $this->options)) {
            return $this->options[$key];
        }

        if (array_key_exists($key, $this->defaults)) {
            return $this->defaults[$key];
        }
    }
1171126
public function getOption($option)
    {
        $this->_setErrorHandler();
        ldap_get_option($this->getConnection(), $option, $returnValue);
        $this->_unsetErrorHandler();

        return $returnValue;
    }