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