Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Model_Profile
- *
- * Extends \Warden\Model_Profile
- *
- * @package Warden
- * @subpackage OmniAuth
- *
- * @author Phil Sturgeon, Modified by Andrew Wayne
- */
- class Model_Profile extends \Warden\Model_Profile
- {
- /**
- * Validation regular expression for a name
- */
- const REGEX_NAME = '\^[^;]+$';
- /**
- * Object properties
- *
- * @var array
- */
- protected static $_properties = array(
- 'id',
- 'user_id',
- // Example fields
- 'first_name' => array(
- 'validation' => array(
- 'null' => true,
- 'match_pattern' => array(self::REGEX_NAME),
- ),
- ),
- 'last_name' => array(
- 'validation' => array(
- 'null' => true,
- 'match_pattern' => array(self::REGEX_NAME),
- ),
- ),
- 'title',
- 'city',
- 'state',
- 'zipcode',
- 'country',
- 'created_at',
- 'updated_at',
- );
- /**
- * Observer classes to use
- *
- * @var array
- */
- protected static $_observers = array(
- 'Warden\\Observer_Timestamps'
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement