Skip to content

Instantly share code, notes, and snippets.

@bdunogier
Created September 2, 2010 12:16
Show Gist options
  • Save bdunogier/562208 to your computer and use it in GitHub Desktop.
Save bdunogier/562208 to your computer and use it in GitHub Desktop.
<?php
static function definition()
{
static $definition = array( "fields" => array( "id" => array( 'name' => 'ID',
'datatype' => 'integer',
'default' => 0,
'required' => true ),
"section_id" => array( 'name' => "SectionID",
'datatype' => 'integer',
'default' => 0,
'required' => true,
'foreign_class' => 'eZSection',
'foreign_attribute' => 'id',
'multiplicity' => '1..*' ),
"owner_id" => array( 'name' => "OwnerID",
'datatype' => 'integer',
'default' => 0,
'required' => true,
'foreign_class' => 'eZUser',
'foreign_attribute' => 'contentobject_id',
'multiplicity' => '1..*'),
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment