예제 #1
0
파일: Tag.php 프로젝트: tnajdek/libZotero
 public function __construct($tagArray)
 {
     if (!$tagArray) {
         return;
     } elseif (is_string($tagArray)) {
         $tagArray = json_decode($tagArray);
     }
     parent::__construct($tagArray);
 }
예제 #2
0
파일: Item.php 프로젝트: tnajdek/libZotero
 public function __construct($itemArray = null, $library = null)
 {
     if (!$itemArray) {
         return;
     }
     parent::__construct($itemArray);
     if ($library !== null) {
         $this->associateWithLibrary($library);
     }
 }
예제 #3
0
파일: Group.php 프로젝트: tnajdek/libZotero
 public function __construct($groupArray = null)
 {
     parent::__construct($groupArray);
     //TODO: parse out links from response?
 }