public static function Instance() { if (self::$instance == null) { self::$instance = new M_Posts2Categories(); } return self::$instance; }
private function __construct() { $this->m_mysql = M_Mysql::Instance(); $this->m_functions = M_Functions::Instance(); $this->m_posts2categories = M_Posts2Categories::Instance(); $this->m_postmeta = M_Postmeta::Instance(); $this->table_post = DB_PREF . 'posts'; }