/**
  * @return array
  */
 public function get_all_contexts()
 {
     $sql = "\n\t\t\tSELECT DISTINCT context\n\t\t\tFROM {$this->wpdb->prefix}icl_strings \n\t\t";
     $rowset = $this->wpdb->get_col($sql);
     return array_unique(array_merge($rowset, $this->get_excluded_contexts()));
 }
Пример #2
0
 /**
  * Returns an array of tables in the database.
  * @access public
  * @return array
  */
 public function get_tables()
 {
     $tables = $this->wpdb->get_col('SHOW TABLES');
     return $tables;
 }