/** * get single OverlegFilesRechten instance from a DOMElement * * @param DOMElement $node * @return OverlegFilesRechten */ public static function fromDOMElement(DOMElement $node) { $o = new OverlegFilesRechten(); $o->assignByHash(self::domNodeToHash($node, self::$FIELD_NAMES, self::$DEFAULT_VALUES, self::$FIELD_TYPES)); $o->notifyPristine(); return $o; }
/** * Fetch OverlegFilesRechten's which this OverlegFiles references. * `overleg_files`.`filename` -> `overleg_files_rechten`.`filename` * * @param PDO $db a PDO Database instance * @param array $sort array of DSC instances * @return OverlegFilesRechten[] */ public function fetchOverlegFilesRechtenCollection(PDO $db, $sort = null) { $filter = array(OverlegFilesRechten::FIELD_FILENAME => $this->getFilename()); return OverlegFilesRechten::findByFilter($db, $filter, true, $sort); }