protected function _get_row_class($item) { $class = parent::_get_row_class($item); //add status class $class .= ' ee-status-strip pro-status-' . $item->status(); return $class; }
public function __construct($admin_page) { parent::__construct($admin_page); require_once EE_MODELS . 'EEM_Price_Type.model.php'; $this->_PRT = EEM_Price_Type::instance(); $this->_price_types = $this->_PRT->get_all_deleted_and_undeleted(); }
/** * This simply sets up the row class for the table rows. * Allows for easier overriding of child methods for setting up sorting. * @param object $item the current item * @return string */ protected function _get_row_class($item) { $class = parent::_get_row_class($item); //add status class $class .= ' ee-status-strip msg-status-' . $item->STS_ID(); if ($this->_has_checkbox_column) { $class .= ' has-checkbox-column'; } return $class; }
/** * Overriding the single_row method from parent to verify whether the $item has an accessible * message_type or messenger object before generating the row. * * @param EE_Message_Template_Group $item * * @return string */ public function single_row($item) { $message_type = $item->message_type_obj(); $messenger = $item->messenger_obj(); if (!$message_type instanceof EE_message_type || !$messenger instanceof EE_messenger) { echo ''; return; } parent::single_row($item); }
/** * constructor * * @param \EE_Admin_Page $admin_page * @return EE_Registrations_List_Table */ function __construct($admin_page) { if (!empty($_GET['event_id'])) { $extra_query_args = array(); foreach ($admin_page->get_views() as $key => $view_details) { $extra_query_args[$view_details['slug']] = array('event_id' => $_GET['event_id']); } $this->_views = $admin_page->get_list_table_view_RLs($extra_query_args); } parent::__construct($admin_page); $this->_status = $this->_admin_page->get_registration_status_array(); EE_Registry::instance()->load_helper('Template'); }
public function __construct($admin_page) { parent::__construct($admin_page); }
public function __construct($admin_page) { parent::__construct($admin_page); require_once EE_MODELS . 'EEM_Price_Type.model.php'; $this->_PRT = EEM_Price_Type::instance(); }
public function __construct($admin_page) { parent::__construct($admin_page); require_once EE_HELPERS . 'EEH_DTT_Helper.helper.php'; }
/** * Custom message for when there are no items found. * * @since 4.3.0 * * @return string */ public function no_items() { if ($this->_view !== 'trashed') { printf(__('%sNo Custom Templates found.%s To create your first custom message template, go to the "Default Message Templates" tab and click the "Create Custom" button next to the template you want to use as a base for the new one.', 'event_espresso'), '<strong>', '</strong>'); } else { parent::no_items(); } }
/** * constructor */ function __construct($admin_page) { parent::__construct($admin_page); $this->_status = $this->_admin_page->get_registration_status_array(); }
/** * @param EE_Event $item * * @return string */ protected function _get_row_class($item) { $class = parent::_get_row_class($item); //add status class $class .= $item instanceof EE_Event ? ' ee-status-strip event-status-' . $item->get_active_status() : ''; if ($this->_has_checkbox_column) { $class .= ' has-checkbox-column'; } return $class; }
/** * constructor * @param \EE_Admin_Page $admin_page * @return EE_Admin_Transactions_List_Table */ function __construct(EE_Admin_Page $admin_page) { parent::__construct($admin_page); $this->_status = $this->_admin_page->get_transaction_status_array(); }