__construct() public méthode

Construct the admin page object.
public __construct ( $page = 'feedwordpressadmin', mixed $link = NULL )
$link mixed An object of class {@link SyndicatedLink} if created for one feed's settings, NULL if created for global default settings
 public function __construct()
 {
     // Set meta-box context name
     parent::__construct('feedwordpressperformancepage');
     $this->dispatch = 'feedwordpress_performance';
     $this->filename = __FILE__;
 }
 public function __construct()
 {
     // Set meta-box context name
     parent::__construct('feedwordpressdiagnosticspage');
     $this->dispatch = 'feedwordpress_diagnostics';
     $this->filename = __FILE__;
     $this->test_html = array();
     add_action('feedwordpress_diagnostics_do_http_test', array($this, 'do_http_test'), 10, 1);
 }
 public function __construct($link = -1)
 {
     if (is_numeric($link) and -1 == $link) {
         $link = $this->submitted_link();
     }
     parent::__construct('feedwordpresscategories', $link);
     $this->dispatch = 'feedwordpress_admin_page_categories';
     $this->pagenames = array('default' => 'Categories & Tags', 'settings-update' => 'Syndicated Categories & Tags', 'open-sheet' => 'Categories & Tags');
     $this->filename = __FILE__;
 }
 public function __construct($filename = NULL)
 {
     parent::__construct('feedwordpresssyndication', NULL);
     // No over-arching form element
     $this->dispatch = NULL;
     if (is_null($filename)) {
         $this->filename = __FILE__;
     } else {
         $this->filename = $filename;
     }
 }
Exemple #5
0
 /**
  * Construct the posts page object.
  *
  * @param mixed $link An object of class {@link SyndicatedLink} if created for one feed's settings, NULL if created for global default settings
  */
 public function __construct($link = -1)
 {
     if (is_numeric($link) and -1 == $link) {
         $link = $this->submitted_link();
     }
     parent::__construct('feedwordpresspostspage', $link);
     $this->dispatch = 'feedwordpress_admin_page_posts';
     $this->filename = __FILE__;
     $this->updatedPosts = new UpdatedPostsControl($this);
     $this->pagenames = array('default' => 'Posts', 'settings-update' => 'Syndicated posts', 'open-sheet' => 'Syndicated Posts & Links');
 }
 public function __construct($link = -1)
 {
     if (is_numeric($link) and -1 == $link) {
         $link = $this->submitted_link();
     }
     parent::__construct('feedwordpressauthors', $link);
     $this->refresh_author_list();
     $this->dispatch = 'feedwordpress_author_settings';
     $this->filename = __FILE__;
     $this->pagenames = array('default' => 'Authors', 'settings-update' => 'Syndicated Authors', 'open-sheet' => 'Syndicated Author');
 }
Exemple #7
0
 /**
  * Constructs the Feeds page object
  *
  * @param mixed $link An object of class {@link SyndicatedLink} if created for one feed's settings, NULL if created for global default settings
  */
 public function __construct($link = -1)
 {
     if (is_numeric($link) and -1 == $link) {
         $link = $this->submitted_link();
     }
     parent::__construct('feedwordpressfeeds', $link);
     $this->dispatch = 'feedwordpress_admin_page_feeds';
     $this->pagenames = array('default' => 'Feeds', 'settings-update' => 'Syndicated feed', 'open-sheet' => 'Feed and Update');
     $this->filename = __FILE__;
     $this->updatedPosts = new UpdatedPostsControl($this);
     $this->special_settings = apply_filters('syndicated_feed_special_settings', $this->special_settings, $this);
 }