Esempio n. 1
0
 public function map($object)
 {
     parent::map($object);
     $keys = get_object_vars($this);
     if (array_key_exists("childs", $keys)) {
         if ($object->hasChilds()) {
             $this->childs = array();
             foreach ($object->getChilds() as $child) {
                 $item = new Webservice_Data_Document_List_Item();
                 $item->id = $child->getId();
                 $item->type = $child->getType();
                 $this->childs[] = $item;
             }
         }
     }
 }