__construct() public méthode

public __construct ( $feedId = null, $feedItemId = null, $status = null, $startTime = null, $endTime = null, $attributeValues = null, $policyData = null, $devicePreference = null, $scheduling = null, $campaignTargeting = null, $adGroupTargeting = null, $keywordTargeting = null, $geoTargeting = null, $urlCustomParameters = null )
Exemple #1
0
 /**
  * @param Title $title Title object that this entry is for.
  * @param String $pubDate Publish date formattable by wfTimestamp.
  * @param Array $keywords list of (String) keywords
  * @param Mixed Boolean or Integer. Namespace containing comments page for entry.
  *   True for the corresponding talk page of $title
  *   False for none
  *   An integer for the page name of $title in the specific namespace denoted by that integer.
  */
 public function __construct($title, $pubDate, $keywords = '', $comment = true)
 {
     if (!$title || !$title instanceof Title) {
         // Paranoia
         throw new MWException('Invalid title object passed to FeedSMItem');
     }
     $commentsURL = '';
     if ($comment === true) {
         // The comment ns is this article's talk namespace.
         $commentsURL = $title->getTalkPage()->getFullUrl();
     } elseif (is_int($comment)) {
         // There's a specific comments namespace.
         $commentsTitle = Title::makeTitle($comment, $title->getDBkey());
         if ($commentsTitle) {
             $commentsURL = $commentsTitle->getFullUrl();
         }
     }
     $this->keywords = $keywords;
     $this->titleObj = $title;
     parent::__construct($title->getText(), '', $title->getFullURL(), $pubDate, '', $commentsURL);
 }
Exemple #2
0
 function __construct($version = RSS2)
 {
     parent::__construct($version);
     $this->version = $version;
     $this->feeditem = new FeedItem($version);
     // Setting default value for essential channel elements
     $this->channels['title'] = $version . ' Feed';
     $this->channels['link'] = 'http://www.sorewarding.com';
     //Tag names to encode in CDATA
     $this->CDATAEncoding = array('description', 'content:encoded', 'summary');
 }
 public function __construct($title, $url, $text, $date)
 {
     parent::__construct($title, $text, $url, $date);
 }
 function __construct($title, $description, $url, $date = '', $author = '', $comments = '', $OtherTags = false)
 {
     parent::__construct($title, $description, $url, $date, $author, $comments);
     $this->OtherTags = !empty($OtherTags) ? $OtherTags : array();
 }