예제 #1
0
파일: JSON.php 프로젝트: nikelin/Direct-API
 protected function renderField(Entities_Field_Interface $field)
 {
     if ($field instanceof Entities_Field_Reference) {
         return $this->renderMap($field->getValue()->getFields());
     } else {
         if ($field instanceof Entities_Field_Array) {
             return $this->renderArray($field->getValue());
         } else {
             return $this->renderObject($field->getValue());
         }
     }
 }