/** * Populates the Category object from the request * @return bean Category */ protected function getBeanFromRequest() { global $logger; $logger->debug(get_class($this) . "::getBeanFromRequest()"); $cat = new Audience($_REQUEST); $cat->setScope($_REQUEST['catscope']); $logger->debug("Auto fill of Category bean has name of: " . $cat->getName()); // TODO add events and gallery if linked return $cat; }
public function testGetName() { $this->assertSame(self::$name, $this->claim->getName()); }