Пример #1
0
 /**
  * Class constructor
  *
  * @param array $linkMeta
  */
 public function __construct($linkMeta)
 {
     // decode type attributes into parameters
     $this->meta = array();
     foreach ($linkMeta as $k => $v) {
         $this->meta[$k] = (string) $v;
     }
     // retrieve link type
     $this->adapterType = One_Repository::getLinkType($this->meta['style']);
     // remember link name
     $this->name = $this->meta['name'];
     $this->linkId = $this->meta['id'];
     $this->target = $this->meta['target'];
     $this->__data = null;
 }