name = $name; $this->setStrings = $set; $this->setObjects = false; if (false === $comments) { $comments = array(); } $this->comments = $comments; } function getName() { return $this->name; } function getSetAsStrings() { return $this->setStrings; } function getComments() { return $this->comments; } function getCount() { return count($this->setStrings); } function hasSet() { return false != $this->setStrings; } /* * @return array of Criteria within */ function &getCriteria() { if (false !== $this->setObjects) { return $this->setObjects; } $opened = array(); foreach ($this->setStrings as $i => $cn) { $k = new Criteria($cn); $opened[] = $k; } $this->setObjects &= $opened; return $this->setObjects; } } ?>