2014-06-10 15:18:49 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
App::uses('AppModel', 'Model');
|
|
|
|
|
2018-07-19 11:48:22 +02:00
|
|
|
class TemplateElementText extends AppModel
|
|
|
|
{
|
|
|
|
public $actsAs = array('Containable');
|
|
|
|
public $belongsTo = array('TemplateElement');
|
2016-06-04 01:08:16 +02:00
|
|
|
|
2018-07-19 11:48:22 +02:00
|
|
|
public $validate = array(
|
|
|
|
'name' => array(
|
|
|
|
'rule' => array('valueNotEmpty'),
|
|
|
|
'message' => 'Please enter a Name',
|
|
|
|
),
|
|
|
|
'text' => array(
|
|
|
|
'rule' => array('valueNotEmpty'),
|
|
|
|
'message' => 'Please fill out the text field',
|
|
|
|
),
|
|
|
|
);
|
2014-06-10 15:18:49 +02:00
|
|
|
}
|