private function getTestVenue() { $v = new Venue(); $v->setName(get_class($this) . ': ' . date('Y-m-d_H:i:s')); $v->setDescription('Auto-generated by SimpleTest'); $v->setPubState('Published'); return $v; }
/** * Populates the Venue object from the request * @return bean Venue */ private function getBeanFromRequest() { $venue = new Venue(); $addr = new Address(); $addr->setOid($_REQUEST['aoid']); $addr->setStreet($_REQUEST['street']); $addr->setUnit($_REQUEST['unit']); $addr->setCity($_REQUEST['city']); $addr->setState($_REQUEST['state']); $addr->setPostalCode($_REQUEST['postalCode']); $addr->setPhone($_REQUEST['phone']); $venue->setOid($_REQUEST['oid']); $venue->setName($_REQUEST['name']); $venue->setDescription($_REQUEST['description']); $venue->setPubState($_REQUEST['pubState']); $venue->setAddress($addr); if (isset($_REQUEST['gallery'])) { $venue->setGallery($_REQUEST['gallery']); } $links = array(); //$links['exhibition'] = $_REQUEST['exhibition']; //$links['program'] = isset($_REQUEST['program']) ? $_REQUEST['program'] : null; //$links['course'] = isset($_REQUEST['course']) ? $_REQUEST['course'] : null; $venue->setEvents($links); return $venue; }