2015-11-24 03:27:14 +01:00
|
|
|
<?php
|
|
|
|
App::uses('AppModel', 'Model');
|
2016-08-25 11:38:37 +02:00
|
|
|
|
2015-11-24 03:27:14 +01:00
|
|
|
class TaxonomyPredicate extends AppModel{
|
2016-08-25 11:38:37 +02:00
|
|
|
|
2015-11-24 03:27:14 +01:00
|
|
|
public $useTable = 'taxonomy_predicates';
|
2016-08-25 11:38:37 +02:00
|
|
|
|
2015-11-24 03:27:14 +01:00
|
|
|
public $recursive = -1;
|
2016-08-25 11:38:37 +02:00
|
|
|
|
2015-11-24 03:27:14 +01:00
|
|
|
public $actsAs = array(
|
|
|
|
'Containable',
|
|
|
|
);
|
|
|
|
|
|
|
|
public $validate = array(
|
|
|
|
'value' => array(
|
2016-05-03 17:17:48 +02:00
|
|
|
'rule' => array('stringNotEmpty'),
|
2015-11-24 03:27:14 +01:00
|
|
|
),
|
|
|
|
'expanded' => array(
|
2016-05-03 17:17:48 +02:00
|
|
|
'rule' => array('stringNotEmpty'),
|
2015-11-24 03:27:14 +01:00
|
|
|
),
|
|
|
|
);
|
|
|
|
|
|
|
|
public $hasMany = array(
|
|
|
|
'TaxonomyEntry' => array(
|
|
|
|
'dependent' => true
|
|
|
|
)
|
|
|
|
);
|
2016-06-04 01:08:16 +02:00
|
|
|
|
2015-11-24 03:27:14 +01:00
|
|
|
public function beforeValidate($options = array()) {
|
|
|
|
parent::beforeValidate();
|
|
|
|
return true;
|
|
|
|
}
|
2016-06-06 10:09:55 +02:00
|
|
|
}
|