, Nicolas Rod for the University of Geneva */ echo ' namespace Shibboleth; /** * This file is autogenerated. Do not modifiy it. */ /** * * Model for table * * @copyright (c) 2012 University of Geneva * @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html * @author Laurent Opprecht */ class { /** * Store for objects. Interact with the database. * * @return Store */ public static function store() { static $result = false; if (empty($result)) { $result = new Store(); } return $result; } /** * * @return */ public static function create($data = null) { return self::store()->create_object($data); } public $name; ?> = def ? $field->def : 'null'; ?>; /** * * @return bool */ public function save() { return self::store()->save($this); } } /** * Store for objects. Interact with the database. * * @copyright (c) 2012 University of Geneva * @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html * @author Laurent Opprecht */ class Store extends Store { /** * * @return Store */ public static function instance() { static $result = false; if (empty($result)) { $result = new self(); } return $result; } public function __construct() { parent::__construct('', '', ''); } /** * * @return */ public function get($w) { $args = func_get_args(); $f = array('parent', 'get'); return call_user_func_array($f, $args); } /** * * @return */ public function create_object($data) { return parent::create_object($data); } /** * * @return */ public function get_by_($value) { return $this->get(array('' => $value)); } /** * * @return bool */ public function _exists($value) { return $this->exist(array('' => $value)); } /** * * @return bool */ public function delete_by_($value) { return $this->delete(array('' => $value)); } }