MISP/app/Model/TemplateElementText.php

24 lines
469 B
PHP

<?php
App::uses('AppModel', 'Model');
/**
* TemplateElementText Model
*
*/
class TemplateElementText extends AppModel {
public $actsAs = array('Containable');
public $belongsTo = array('TemplateElement');
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',
),
);
}