Exemplo n.º 1
0
 /**
  * @return bool
  */
 public function isValid()
 {
     $ruleFields = array('id', 'name', 'posttype', 'status_before', 'status_after', 'notification_subject', 'notification_body', 'recipient', 'cc', 'cc_select', 'bcc', 'bcc_select', 'active', 'service_email', 'service_log', 'categories', 'from');
     $diff = array_diff(IfwPsn_Wp_Proxy_Filter::apply('psn_db_patcher_rule_fields', $ruleFields), IfwPsn_Wp_Proxy_Db::getTableFieldNames('psn_rules'));
     return empty($diff);
 }