Пример #1
0
 public function __construct($type, array $values = NULL)
 {
     $this->_attachment = Facebook_Attachment::factory($type, $values);
     if (!empty($values)) {
         $values = array_intersect_key($values, $this->_stream);
         $this->_stream = Arr::merge($values, $this->_stream);
     }
 }
Пример #2
0
 public function __construct(array $values = NULL)
 {
     parent::__construct($values);
     $this->_attachment['media'] = array();
 }