PHP 클래스 Model_A1_User_Jelly

public static function initialize(Jelly_Meta $meta) { $meta->table('user') ->fields(array( 'logins' => new Field_Integer, 'token' => new Field_String(), )); parent::initialize($meta); } } ------------------------------ APPATH/classes/controller/user.php: class Controller_Frontend_User extends Controller_Frontend_Template { public function action_signup() { ... try { $user = Jelly::factory('user', array( 'username' => 'user', 'password' => 'bI$hkEk*2bj', 'password' => 'bI$hkEk*2bj', ))->save(); } catch(Validate_Exception $e) { catch validate errors } ... }
상속: extends Jelly_Model
파일 보기 프로젝트 열기: wouterrr/a1

공개 메소드들

메소드 설명
hash_password ( $password ) : string Hash callback using the A1 library
initialize ( Jelly_Meta $meta )

메소드 상세

hash_password() 공개 정적인 메소드

Hash callback using the A1 library
public static hash_password ( $password ) : string
리턴 string

initialize() 공개 정적인 메소드

public static initialize ( Jelly_Meta $meta )
$meta Jelly_Meta