/** * Constructor, we override the parent to pass our own arguments * We usually focus on three parameters: singular and plural labels, as well as whether the class supports AJAX. * * @param CUAR_Plugin $plugin * @param array $args * @param object $post_type_object * @param array $associated_taxonomies */ public function __construct($plugin, $args, $post_type_object, $associated_taxonomies) { parent::__construct($plugin, $args, admin_url('admin.php?page=wpca-list,content,' . $post_type_object->name)); $this->po_addon = $plugin->get_addon('post-owner'); $this->post_type = $post_type_object->name; $this->post_type_object = $post_type_object; $this->associated_taxonomies = $associated_taxonomies; }
/** * Constructor, we override the parent to pass our own arguments * We usually focus on three parameters: singular and plural labels, as well as whether the class supports AJAX. * * @param CUAR_Plugin $plugin */ public function __construct($plugin) { parent::__construct($plugin, array('singular' => __('Log', 'cuar'), 'plural' => __('Logs', 'cuar'), 'ajax' => false), admin_url('admin.php?page=wpca-logs'), 'CUAR_LogEvent'); $this->displayable_meta = apply_filters('cuar/core/log/table-displayable-meta', array()); $this->content_types = array_merge($this->plugin->get_content_types(), $this->plugin->get_container_types()); }