Ejemplo n.º 1
0
 public function toArray()
 {
     $toArray = parent::toArray();
     $toArray['Barrier Level'] = $this->barrier_level;
     $toArray['Barrier Hit?'] = $this->isBarrierHit() ? 'YES' : 'NO';
     return $toArray;
 }
Ejemplo n.º 2
0
 public function generate_certificate($permissions = 0)
 {
     require $_SERVER['DOCUMENT_ROOT'] . '/application/models/Certificate.php';
     $certificate = new Certificate(Certificate::kContextChannel);
     $certificate->setData(array('certificate' => $this->certificate, 'id' => $this->channelId(), 'permissions' => $permissions));
     return $certificate->toArray();
 }
Ejemplo n.º 3
0
 public function toArray()
 {
     $toArray = parent::toArray();
     $toArray['Participation Rate'] = $this->participation_rate;
     return $toArray;
 }