Location: PHPKode > projects > Banshee PHP Framework > templates/tablemanager_model.php
<?php
	class XXX_model extends tablemanager_model {
		protected $table = "table";
		protected $elements = array(
			"number" => array(
				"label"    => "Number",
				"type"     => "integer",
				"overview" => true,
				"required" => true),
			"line" => array(
				"label"    => "Line",
				"type"     => "varchar",
				"overview" => true,
				"required" => true),
			"text" => array(
				"label"    => "Text",
				"type"     => "text",
				"required" => true),
			"boolean" => array(
				"label"    => "Boolean",
				"type"     => "boolean",
				"overview" => true),
			"timestamp" => array(
				"label"    => "Timestamp",
				"type"     => "datetime",
				"overview" => true),
			"enum" => array(
				"label"    => "Enum",
				"type"     => "enum",
				"options"   => array(
					"value1" => "Value one",
					"value2" => "Value two",
					"value3" => "Value three")),
			"foreignkey" => array(
				"label"    => "Foreign key",
				"type"     => "foreignkey",
				"table"    => "table",
				"column"   => "column",
				"overview" => true,
				"required" => false));
	}
?>
Return current item: Banshee PHP Framework