...n __construct($arg = null){ if ($arg !== null && $arg !== '') { $this->arg = $arg; }} getTokens() 方法 public void getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer.class.php#L86 (显示) public function getTokens($value, ...
...n __construct($arg = null){ if ($arg !== null && $arg !== '') { $this->arg = intval($arg); if ($this->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }} getTokens() 方法 public void getT...
...n __construct($arg = null){ if ($arg !== null && $arg !== '') { $this->arg = intval($arg); if ($this->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }} getTokens() 方法 public void getT...
...function __construct($code, $message, $file, $line, $previous = null){ $this->_file = $file; $this->_line = $line; if (version_compare(PHP_VERSION, '5.3.0', '>=')) { parent::__construct($message, $code, $previous); } else { parent::__construct($message, $code); }} ...
...c function __get($name){ $getter = 'get' . $name; if (method_exists($this, $getter)) { return $this->$getter(); } // throw exception $msg = method_exists($this, 'set' . $name) ? 'Write-only' : 'Undefined'; $msg .= ' property: ' . get_class($this) . '::$' . $name; throw ne...
...示) public function __toString(){ $string = '[' . __CLASS__ . '] ' . $this->getRelPath($this->getFile()) . '(' . $this->getLine() . '): '; $string .= $this->getMessage() . ($this->getCode() > 0 ? '(S#' . $this->getCode() . ')' : ''); return $string;} 将类对象转换成字符串 ...
...cmd as $key => $value) { if ($key === 'arg' || property_exists($this, $key)) { $this->$key = $value; } } } else { $this->cmd = $cmd; $this->arg1 = $arg1; $this->arg2 = $arg2; $this->buf = $buf; $this->buf1 = $buf1; ...
...XSDataSource.class.php#L384 (显示) protected function deinit(){ if ($this->fd) { fclose($this->fd); $this->fd = null; }} getDataList() 方法 protected void getDataList() 源码: sdk/php/util/XSDataSource.class.php#L392 (显示) protected function getDataLi...
...php#L33 (显示) public function __toString(){ $str = ''; foreach ($this->_fields as $field) { $str .= $field->toConfig() . "\n"; } return $str;} 将对象转换为配置文件字符串 addField() 方法 public void addField(mixed $field, array $config=NULL) $fi...
...urce.class.php#L30 (显示) public function __construct($type, $arg){ $this->type = $type; $this->arg = $arg; $this->inCli = php_sapi_name() === 'cli'; $this->init();} 构造函数 deinit() 方法 protected void deinit() 源码: sdk/php/util/XSDataSource.class.php#L104...