/** * Create field "to_dyn" on psn_rules table * @since 1.8 */ public function createRulesFieldToDyn() { // ALTER TABLE `wp_psn_rules` ADD `to_dyn` TEXT NULL AFTER `to`; $query = sprintf('ALTER TABLE `%s` ADD `to_dyn` TEXT NULL AFTER `to`', IfwPsn_Wp_Proxy_Db::getTableName('psn_rules')); IfwPsn_Wp_Proxy_Db::getObject()->query($query); }
/** * @return mixed */ protected function _getAll($force = false) { if ($this->_resultBuffer === null || $force === true) { $db = IfwPsn_Wp_Proxy_Db::getObject(); $sql = $db->prepare("\n SELECT * FROM {$db->options}\n WHERE option_name LIKE '%s'\n ", '_transient_' . self::TRANSIENT_ITEM_NAME . '%'); $this->_resultBuffer = $db->get_results($sql, ARRAY_A); } return $this->_resultBuffer; }
/** * Runs the test * @param IfwPsn_Wp_Plugin_Manager $pm * @return mixed */ public function execute(IfwPsn_Wp_Plugin_Manager $pm) { if (IfwPsn_Wp_Proxy_Db::columnExists('psn_rules', 'categories')) { $this->_result = true; } }