本文整理汇总了PHP中Result::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Result::__construct方法的具体用法?PHP Result::__construct怎么用?PHP Result::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Result
的用法示例。
在下文中一共展示了Result::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($table, Result $result, $column, $active)
{
parent::__construct($table, $result->notORM);
$this->result = $result;
$this->column = $column;
$this->active = $active;
}
示例2: __construct
/**
* @param boolean $valid
* @param IdentityInterface $identity
* @param array $messages
* @param array|null $usage
* @param string|null $appId
* @param string|null $appKey
*/
public function __construct($valid, IdentityInterface $identity = null, array $messages = array(), $usage = null, $appId = null, $appKey = null)
{
parent::__construct($valid, $identity, $messages);
$this->usage = $usage;
$this->appId = $appId;
$this->appKey = $appKey;
}
示例3:
function __construct($tabelID, $whereArr, $obj = NULL)
{
GenFun::hostConnect();
$this->tableID = $tabelID;
$this->whereArr = $whereArr;
parent::__construct($this->getQueryString(), $obj);
}
示例4: __construct
public function __construct()
{
parent::__construct();
}
示例5: __construct
/**
* @param resource $result Database-specific query result.
* @param Connection $dbConnection Connection object.
* @param \Bitrix\Main\Diag\SqlTrackerQuery $trackerQuery Helps to collect debug information.
*/
public function __construct($result, Connection $dbConnection = null, \Bitrix\Main\Diag\SqlTrackerQuery $trackerQuery = null)
{
parent::__construct($result, $dbConnection, $trackerQuery);
}
示例6: __construct
public function __construct($value = null)
{
parent::__construct($value);
}
示例7: __construct
public function __construct($result)
{
parent::__construct($result);
}
示例8: __construct
/**
* @param PSHD $pshd
*/
public function __construct($pshd)
{
parent::__construct($pshd);
}
示例9: __construct
public function __construct($guid = 0, $code = self::CODE_SUCCESS, $info = self::INFO_SUCCESS, $owner = null, $level = E_USER_NOTICE)
{
$this->_level = $level;
parent::__construct($guid, $code, $info);
parent::extend('owner', $owner);
}
示例10: __construct
/**
* EmptyResult constructor.
*/
public function __construct()
{
parent::__construct(new EmptyCursor());
}
示例11: setError
public function setError($errors)
{
parent::__construct($errors);
return $this;
}
示例12: __construct
/**
* VtCtldResult constructor.
*
* @param VtCtld $result
*/
public function __construct(VtCtld $result)
{
$data = $this->transform($result->getData());
$cursor = new Cursor($data, $this->getFields());
parent::__construct($cursor);
}
示例13: __construct
/**
* Construct a Success result.
*
* @param array $data Data to pass to success result.
*/
public function __construct(array $data = null)
{
parent::__construct(true, 'success', $data);
}
示例14: __construct
/**
* Construct a Nullable result.
*/
public function __construct()
{
parent::__construct(true, 'success');
}
示例15: error
public function error($data = null)
{
parent::__construct($data);
}