gyro/core/lib/interfaces/idbconstraint.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * A constraint on a DB table 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Interfaces 00007 */ 00008 interface IDBConstraint { 00009 /** 00010 * Returns field taking parts in this relation 00011 * 00012 * @return array Array with column name as value 00013 */ 00014 public function get_fields(); 00015 00016 /** 00017 * Check if constraints are fullfiled. 00018 * 00019 * @param array Cosntraint Column data Associative array of form fieldname => fieldvalue 00020 * @param array Key Column Data Associative array of form fieldname => fieldvalue 00021 * @return Status 00022 */ 00023 public function validate($arr_fields, $arr_keys); 00024 } 00025 ?>