Esempio n. 1
0
 /**
  * @param KVDdo_AdrProvincie
  */
 public function __construct(KVDdo_AdrProvincie $provincie = null)
 {
     $this->provincie = $provincie === null ? KVDdo_AdrProvincie::newNull() : $provincie;
     $this->naam = 'Onbepaald';
     $this->crabId = 0;
     $this->id = $provincie === null ? null : $provincie->getId();
     $this->straten = new KVDdom_DomainObjectCollection(array());
     $this->deelgemeenten = new KVDdom_DomainObjectCollection(array());
     $this->kadastergemeente = new KVDdom_DomainObjectCollection(array());
 }
Esempio n. 2
0
 /**
  * @param   KVDdo_AdrProvincie  $provincie
  * @param   string              $orderField     Veld om op te sorteren. Kan id, gemeenteNaam of provincieNaam zijn.
  * @param   string              $orderDirection Kan omlaag of omhoog zijn.
  * @return  KVDdom_DomainObjectCollection Een collecte van {@link KVDdo_AdrGemeente} objecten.
  */
 public function findByProvincie(KVDdo_AdrProvincie $provincie, $orderField = null, $orderDirection = null)
 {
     $stmt = $this->_conn->prepare($this->getFindByProvincieStatement() . $this->getOrderClause($orderField, $orderDirection));
     $id = $provincie->getId();
     $stmt->bindParam(1, $id);
     return $this->executeFindMany($stmt);
 }