Beispiel #1
0
 /**
  * Imports from an array the keys that match the properties of the data objects
  *
  * @param array $data
  * @param Radix $radix
  */
 public function import(array $data, Radix $radix)
 {
     $this->radix = $radix;
     if ($this->comment === null) {
         $this->comment = new CommentData();
     }
     $this->comment->import($data);
     if (isset($data['media_id'])) {
         if ($this->media === null) {
             $this->media = new MediaData();
         }
         $this->media->import($data);
     }
 }