Skip to content

Instantly share code, notes, and snippets.

@jawngee
Created July 15, 2009 06:49
Show Gist options
  • Select an option

  • Save jawngee/147535 to your computer and use it in GitHub Desktop.

Select an option

Save jawngee/147535 to your computer and use it in GitHub Desktop.
<?
/**
* Sample model
*
* [[
* table: sample.item
* database: default
* read_only: false
* ]]
*
*/
class Item extends Model
{
//@ fields
/**
* [[
* label: Title
* type: string
* length: 32
* description: Title of the item
* validate:
* required: true
* length: 8-32
* unique: true
* ]]
*/
public $title;
/**
* [[
* label: URI
* type: string
* length: 32
* description: URI of the item
* validate:
* required: true
* length: 4-32
* unique: true
* format: alpha_numeric
* ]]
*/
public $uri;
/**
* [[
* label: Description
* type: text
* description: Description of the item
* ]]
*/
public $description;
//@ end fields
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment