芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/www/resupres/dddse/application/classes/Model/user.php
array( 'model' => 'user', 'foreign_key' => 'parent_id' ) ); protected $_has_many = array( 'clients' => array( 'model' => 'user', 'foreign_key' => 'parent_id' ), 'fichiers' => array( 'model' => 'fichier', 'foreign_key' => 'user_id' ), 'mois' => array( 'model' => 'mois', 'foreign_key' => 'user_id' ), ); /* public function rules() { return array( 'login' => array( array('not_empty'), array('min_length', array(':value', 4)), array('max_length', array(':value', 32)), ), 'password' => array( array('not_empty'), ) ); } */ public function filters() { return array( // Auto hash password. 'password' => array( array(array($this, 'hash_password')), ), ); } public function hash_password($password) { // Return the password hashed. (SHA256 algorithm, the same of this used by the framework) return hash('sha256', $password); } }