2011-06-09 16:23:29 +00:00
|
|
|
<?php
|
|
|
|
class Language extends AppModel {
|
|
|
|
var $name = 'Language';
|
|
|
|
var $displayField = 'name';
|
2011-07-14 14:49:25 +00:00
|
|
|
|
|
|
|
var $scaffoldForbiddenActions = array("add", "edit", "delete");
|
2011-06-09 16:23:29 +00:00
|
|
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
|
|
|
|
|
|
|
var $hasMany = array(
|
2011-07-14 14:49:25 +00:00
|
|
|
'TranslationFile' => array(
|
|
|
|
'className' => 'TranslationFile',
|
2011-06-09 16:23:29 +00:00
|
|
|
'foreignKey' => 'language_id',
|
|
|
|
'dependent' => false,
|
|
|
|
'conditions' => '',
|
|
|
|
'fields' => '',
|
|
|
|
'order' => '',
|
|
|
|
'limit' => '',
|
|
|
|
'offset' => '',
|
|
|
|
'exclusive' => '',
|
|
|
|
'finderQuery' => '',
|
|
|
|
'counterQuery' => ''
|
|
|
|
),
|
|
|
|
'ImportedTranslationFile' => array(
|
|
|
|
'className' => 'ImportedTranslationFile',
|
|
|
|
'foreignKey' => 'language_id',
|
|
|
|
'dependent' => false,
|
|
|
|
'conditions' => '',
|
|
|
|
'fields' => '',
|
|
|
|
'order' => '',
|
|
|
|
'limit' => '',
|
|
|
|
'offset' => '',
|
|
|
|
'exclusive' => '',
|
|
|
|
'finderQuery' => '',
|
|
|
|
'counterQuery' => ''
|
2011-07-14 14:49:25 +00:00
|
|
|
),
|
|
|
|
'Identifier' => array(
|
|
|
|
'className' => 'Identifier',
|
|
|
|
'foreignKey' => 'language_id',
|
|
|
|
'dependent' => false,
|
|
|
|
'conditions' => '',
|
|
|
|
'fields' => '',
|
|
|
|
'order' => '',
|
|
|
|
'limit' => '',
|
|
|
|
'offset' => '',
|
|
|
|
'exclusive' => '',
|
|
|
|
'finderQuery' => '',
|
|
|
|
'counterQuery' => ''
|
|
|
|
),
|
2011-06-09 16:23:29 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
}
|