fligtar%gmail.com a8bcfba56e Updated addons stuff, including translation support
git-svn-id: svn://10.0.0.236/trunk@208565 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-27 06:08:37 +00:00

73 lines
3.4 KiB
PHP

<?php
class Addon extends AppModel
{
var $name = 'Addon';
var $belongsTo = array('Addontype');
var $hasMany = array('Version' =>
array('className' => 'Version',
'conditions' => '',
'order' => '',
'limit' => '',
'foreignKey' => 'addon_id',
'dependent' => false,
'exclusive' => false,
'finderSql' => ''
),
'Preview' =>
array('className' => 'Preview',
'conditions' => '',
'order' => '',
'limit' => '',
'foreignKey' => 'addon_id',
'dependent' => false,
'exclusive' => false,
'finderSql' => ''
),
'Feature' =>
array('classname' => 'Feature',
'conditions' => '',
'order' => '',
'limit' => '',
'foreignKey' => 'addon_id',
'dependent' => false,
'exclusive' => false,
'finderSql' => ''
)
);
var $hasAndBelongsToMany = array('User' =>
array('className' => 'User',
'joinTable' => 'addons_users',
'foreignKey' => 'addon_id',
'associationForeignKey'=> 'user_id',
'conditions' => '',
'order' => '',
'limit' => '',
'unique' => false,
'finderSql' => '',
'deleteQuery'=> '',
),
'Tag' =>
array('className' => 'Tag',
'joinTable' => 'addons_tags',
'foreignKey' => 'addon_id',
'associationForeignKey'=> 'tag_id',
'conditions' => '',
'order' => '',
'limit' => '',
'unique' => false,
'finderSql' => '',
'deleteQuery'=> '',
)
);
var $validate = array(
'guid' => VALID_NOT_EMPTY,
'name' => VALID_NOT_EMPTY,
'addontype_id' => VALID_NUMBER,
'description' => VALID_NOT_EMPTY,
'summary' => VALID_NOT_EMPTY
);
}
?>