Пример #1
0
 function __construct($page = "", $data = "")
 {
     $this->page = $page;
     if (!empty($page) && !empty($data)) {
         $this->metadata = FutureLink_MetadataAssembler::pagePastLink($page, $data);
     }
     return parent::__construct($page);
 }
Пример #2
0
 function __construct($page = "", $data = "")
 {
     $this->page = $page;
     if (!empty($page) && !empty($data)) {
         $this->metadata = Feed_ForwardLink_Metadata::pageTextLink($page, $data);
     }
     return parent::__construct($page);
 }
Пример #3
0
 function __construct($href)
 {
     $this->href = $href;
     parent::__construct($href);
 }
Пример #4
0
 function addItem($item)
 {
     parent::addItem($item);
     $exists = array();
     $verificationsCount = count($this->verifications);
     foreach ($this->verifications as &$verification) {
         foreach ($verification['reason'] as $reason) {
             if ($reason == 'exists') {
                 $exists[] = true;
             }
         }
     }
     if (count($exists) == $verificationsCount) {
         return true;
     }
     //If they were not added, but the reason is that they already exist, we show that they were sent successfully
     return $this->itemsAdded;
 }