/** * Constructor * * @param Settings $settings * @param RepositorySubscribers $subscribers */ function __construct(\SimpleSubscribe\Settings $settings, \SimpleSubscribe\RepositorySubscribers $subscribers) { global $status, $page; $this->subscribers = $subscribers; $this->settings = $settings; add_filter('set-screen-option', array('\\SimpleSubscribe\\TableSubscribes', 'setScreenOptions'), 100, 3); parent::__construct(array('singular' => 'subscriber', 'plural' => 'subscribers', 'ajax' => FALSE)); }
/** * Constructor * * @param RepositoryLog $log */ function __construct(\SimpleSubscribe\RepositoryLog $log) { global $status, $page; $this->log = $log; parent::__construct(array('singular' => 'log', 'plural' => 'logs', 'ajax' => false)); }