public function __construct($record, $name, $parent)
 {
     $this->record = $record;
     $this->name = $name;
     $this->parent = $parent;
     parent::__construct($record->ClassName);
 }
Esempio n. 2
0
 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;
 }
 /**
  * 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);
 }