コード例 #1
0
ファイル: Student.php プロジェクト: AppStateESS/tailgate
 public function getSignupDate($format = null)
 {
     if ($format) {
         $this->signup_date->setFormat($format);
         return $this->signup_date->__toString();
     } else {
         return $this->signup_date->get();
     }
 }
コード例 #2
0
ファイル: Game.php プロジェクト: AppStateESS/tailgate
 public function __construct()
 {
     parent::__construct();
     $this->visitor_id = new \phpws2\Variable\Integer(null, 'visitor_id');
     $this->kickoff = new \phpws2\Variable\DateTime(null, 'kickoff');
     $this->kickoff->setFormat('%s');
     $this->signup_start = new \phpws2\Variable\DateTime(null, 'signup_start');
     $this->signup_start->setFormat('%s');
     $this->signup_end = new \phpws2\Variable\DateTime(null, 'signup_end');
     $this->signup_end->setFormat('%s');
     $this->pickup_deadline = new \phpws2\Variable\DateTime(null, 'pickup_deadline');
     $this->pickup_deadline->setFormat('%s');
     $this->lottery_run = new \phpws2\Variable\Bool(false, 'lottery_run');
     $this->lottery_started = new \phpws2\Variable\Bool(false, 'lottery_started');
     $this->completed = new \phpws2\Variable\Bool(false, 'completed');
     $this->university = new \phpws2\Variable\CanopyString(null, 'university');
     $this->university->setIsTableColumn(false);
     $this->mascot = new \phpws2\Variable\CanopyString(null, 'mascot');
     $this->mascot->setIsTableColumn(false);
 }