Created
October 5, 2011 20:50
-
-
Save makeusabrew/1265672 to your computer and use it in GitHub Desktop.
Jaoss - Basic Table Column Declaration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class People extends Table { | |
protected $meta = array( | |
'columns' => array( | |
'forename' => array( | |
'type' => 'text', | |
'required' => true, | |
), | |
'surname' => array( | |
'type' => 'text', | |
), | |
'email' => array( | |
'type' => 'email', | |
), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment