2011-06-09 16:23:29 +00:00
|
|
|
<?php
|
|
|
|
class ImportedTranslationFile extends AppModel {
|
|
|
|
var $name = 'ImportedTranslationFile';
|
|
|
|
var $displayField = 'filename';
|
2011-07-14 14:49:25 +00:00
|
|
|
|
|
|
|
var $scaffoldForbiddenActions = array("index", "add", "admin_add", "edit", "admin_edit", "delete", "admin_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 $actsAs = array('Containable');
|
|
|
|
|
|
|
|
var $belongsTo = array(
|
|
|
|
'Language' => array(
|
|
|
|
'className' => 'Language',
|
|
|
|
'foreignKey' => 'language_id',
|
|
|
|
'conditions' => '',
|
|
|
|
'fields' => '',
|
|
|
|
'order' => ''
|
2011-07-14 14:49:25 +00:00
|
|
|
),
|
|
|
|
'TranslationFile' => array(
|
|
|
|
'className' => 'TranslationFile',
|
|
|
|
'foreignKey' => 'translation_file_id',
|
|
|
|
'conditions' => '',
|
|
|
|
'fields' => '',
|
|
|
|
'order' => ''
|
|
|
|
),
|
2011-06-09 16:23:29 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
var $hasMany = array(
|
|
|
|
'FileIdentifier' => array(
|
|
|
|
'className' => 'FileIdentifier',
|
|
|
|
'foreignKey' => 'imported_translation_file_id',
|
|
|
|
'dependent' => true,
|
|
|
|
'conditions' => '',
|
|
|
|
'fields' => '',
|
2011-07-14 14:49:25 +00:00
|
|
|
'order' => 'FileIdentifier.id',
|
2011-06-09 16:23:29 +00:00
|
|
|
'limit' => '',
|
|
|
|
'offset' => '',
|
|
|
|
'exclusive' => '',
|
|
|
|
'finderQuery' => '',
|
|
|
|
'counterQuery' => ''
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
var $hasOne = array(
|
|
|
|
'RawFile' => array(
|
|
|
|
'className' => 'RawFile',
|
|
|
|
'foreignKey' => 'filename',
|
|
|
|
'dependand' => false,
|
|
|
|
'conditions' => '',
|
|
|
|
'fields' => '',
|
|
|
|
'order' => '',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|