Exemple #1
0
 public static function getHoofdrelatie()
 {
     self::$db = ECPFactory::getPDO("OmbHoofdrelatie");
     $relatie = new OmbHoofdrelatie();
     $sql = "SELECT * FROM `omb_hoofdrelatie";
     $result = $relatie->findBySql(self::$db, $sql);
     return self::resultToArray($result, OmbHoofdrelatie::getFieldNames());
 }
 /**
  * get single OmbHoofdrelatie instance from a DOMElement
  *
  * @param DOMElement $node
  * @return OmbHoofdrelatie
  */
 public static function fromDOMElement(DOMElement $node)
 {
     $o = new OmbHoofdrelatie();
     $o->assignByHash(self::domNodeToHash($node, self::$FIELD_NAMES, self::$DEFAULT_VALUES, self::$FIELD_TYPES));
     $o->notifyPristine();
     return $o;
 }