PHP Class Pommo_Rules, poMMo
This file is part of poMMo (http://www.pommo.org)
poMMo is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2, or any later version.
poMMo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with program; see the file docs/LICENSE. If not, write to the
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
Mostra file
Open project: soonick/poMMo
Class Usage Examples
Public Methods
Method |
Description |
|
addBoolRule ( &$group, &$match, &$logic ) |
|
|
addFieldRule ( &$group, &$field, &$logic, &$values, $type ) |
|
|
addGroupRule ( &$groupID, &$match, &$logic ) |
|
|
changeType ( $gid, $fid, $logic, $type ) |
|
|
deleteRule ( $gid, $fid, $logic ) |
|
|
getEnglish ( $str = null ) |
|
|
getLegal ( &$group, $fields ) |
returns an array of logics. Array key correlates to field_id. |
|
getLegalGroups ( &$group, &$groups ) |
returns array of group names. Array key correlates to group's ID |
|
Method Details
addBoolRule()
public method
addFieldRule()
public method
public addFieldRule ( &$group, &$field, &$logic, &$values, $type ) |
addGroupRule()
public method
changeType()
public method
deleteRule()
public method
getEnglish()
public static method
getLegal()
public static method
returns an array of logics. Array key correlates to field_id.
public static getLegal ( &$group, $fields ) |
getLegalGroups()
public static method
returns array of group names. Array key correlates to group's ID