/** * @see SqlMapper::__construct($db, $table, $fluid, $ttl) */ function __construct($db, $table = "users", $fluid = null, $ttl = 60) { $f3 = \Base::instance(); if ($f3->exists("LOGIN") && $f3->get("LOGIN") == "LDAP") { return; } parent::__construct($db, $table, $fluid, $ttl); $this->properties = array("id" => array("type" => "Integer"), "groupId" => array("type" => "Integer"), "name" => array("type" => "Text"), "email" => array("type" => "Email"), "password" => array("type" => "Text")); }
function __construct() { parent::__construct(new DB\SQL("sqlite:/tmp/test.sqlite"), "MyTest"); $this->properties = array("mybool" => array("type" => "Boolean"), "mycolor" => array("type" => "Color"), "myemail" => array("type" => "Email"), "myfloat" => array("type" => "Float"), "myint" => array("type" => "Integer"), "mynumeric" => array("type" => "Numeric"), "mytext" => array("type" => "Text")); }
/** * @see SqlMapper::__construct($db, $table, $ttl) */ function __construct($db, $table = "groups", $ttl = 60) { parent::__construct($db, $table, $ttl); $this->properties = array("id" => array("type" => "Integer"), "name" => array("type" => "Text")); }