コード例 #1
0
 /**
  * Fetch OmbMishandeling which references this OmbMishandelvorm. Will return null in case reference is invalid.
  * `omb_mishandelvorm`.`mishandeling` -> `omb_mishandeling`.`id`
  *
  * @param PDO $db a PDO Database instance
  * @param array $sort array of DSC instances
  * @return OmbMishandeling
  */
 public function fetchOmbMishandeling(PDO $db, $sort = null)
 {
     $filter = array(OmbMishandeling::FIELD_ID => $this->getMishandeling());
     $result = OmbMishandeling::findByFilter($db, $filter, true, $sort);
     return empty($result) ? null : $result[0];
 }
コード例 #2
0
 /**
  * get single OmbMishandeling instance from a DOMElement
  *
  * @param DOMElement $node
  * @return OmbMishandeling
  */
 public static function fromDOMElement(DOMElement $node)
 {
     $o = new OmbMishandeling();
     $o->assignByHash(self::domNodeToHash($node, self::$FIELD_NAMES, self::$DEFAULT_VALUES, self::$FIELD_TYPES));
     $o->notifyPristine();
     return $o;
 }