Exemplo n.º 1
0
 /**
  * @param string                      $table_name
  * @param Mlp_Db_Table_List_Interface $table_list
  */
 public function __construct($table_name, Mlp_Db_Table_List_Interface $table_list)
 {
     $this->table_name = $table_name;
     if (!$this->is_valid()) {
         trigger_error('Invalid table name: ' . esc_html($table_name), E_USER_ERROR);
     }
     $this->all_table_names = $table_list->get_all_table_names();
 }
 /**
  * Constructor. Set up the properties.
  *
  * @param string                      $table_name Current table name.
  * @param Mlp_Db_Table_List_Interface $table_list All WordPress table names for the current installation.
  */
 public function __construct($table_name, Mlp_Db_Table_List_Interface $table_list)
 {
     $this->table_name = $table_name;
     // TODO: Most propbably completely remove is_valid() check, and thus remove this class...
     if (!$this->is_valid()) {
         trigger_error('Invalid table name: ' . esc_html($table_name), E_USER_ERROR);
     }
     $this->all_table_names = $table_list->get_all_table_names();
 }