public function getJSONObject()
 {
     $o = parent::getBaseJSONObject();
     foreach ($this->files as $file) {
         $o->files[] = $file->getJSONObject();
     }
     return $o;
 }
Esempio n. 2
0
 public function getJSONObject()
 {
     $o = parent::getBaseJSONObject();
     foreach ($this->users as $user) {
         $uo = new stdClass();
         $uo->uID = $user->getUserID();
         $uo->displayName = $user->getUserDisplayName();
         $o->users[] = $uo;
     }
     return $o;
 }
 public function getJSONObject()
 {
     $o = parent::getBaseJSONObject();
     if ($this->cID > 0) {
         $o->cID = $this->cID;
     } else {
         if (count($this->cIDs) > 0) {
             foreach ($this->cIDs as $cID) {
                 $o->cID[] = $cID;
             }
         }
     }
     return $o;
 }
Esempio n. 4
0
 public function getJSONObject()
 {
     $o = parent::getBaseJSONObject();
     if ($this->cID > 0) {
         $o->cID = $this->cID;
     } elseif (count($this->cIDs) > 0) {
         foreach ($this->cIDs as $cID) {
             $o->cID[] = $cID;
         }
     }
     if (isset($o->cID)) {
         if (!is_array($o->cID)) {
             $o->pages[] = Page::getByID($o->cID)->getJSONObject();
         } else {
             foreach ($o->cID as $cID) {
                 $o->pages[] = Page::getByID($cID)->getJSONObject();
             }
         }
     }
     return $o;
 }
Esempio n. 5
0
 public function getJSONObject()
 {
     $o = parent::getBaseJSONObject();
     $o->result = $this->result->getJSONObject();
     return $o;
 }