Ejemplo n.º 1
0
 public function getJSONObject()
 {
     $o = parent::getBaseJSONObject();
     foreach ($this->files as $file) {
         $o->files[] = $file->getJSONObject();
     }
     return $o;
 }
Ejemplo 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;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo 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;
 }
Ejemplo n.º 5
0
 public function getJSONObject()
 {
     $o = parent::getBaseJSONObject();
     $o->result = $this->result->getJSONObject();
     return $o;
 }