本文整理匯總了PHP中DataList::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP DataList::__construct方法的具體用法?PHP DataList::__construct怎麽用?PHP DataList::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DataList
的用法示例。
在下文中一共展示了DataList::__construct方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct($record, $name, $parent)
{
$this->record = $record;
$this->name = $name;
$this->parent = $parent;
parent::__construct($record->ClassName);
}
示例2: __construct
public function __construct($dataClass, $joinTable, $localKey, $foreignKey, $extraFields = array())
{
// Bypass the many-many constructor
DataList::__construct($dataClass);
$this->joinTable = $joinTable;
$this->localKey = $localKey;
$this->foreignKey = $foreignKey;
$this->extraFields = $extraFields;
}
示例3: __construct
/**
* Create a new DataList.
* No querying is done on construction, but the initial query schema is set up.
*
* @param string $dataClass - The DataObject class to query.
*/
public function __construct($dataClass)
{
parent::__construct($dataClass);
$this->dataClass = $dataClass;
$this->dataQuery = new OrientDataQuery($this->dataClass);
}