30 extends Zend_Validate_Abstract
32 const ENGINE_EMPTY =
'tableEngineEmpty';
33 const INVALID =
'tableEngineInvalid';
34 const NOT_AVAIBLE =
'tableEngineNotAvaible';
39 protected $_messageTemplates = array(
40 self::ENGINE_EMPTY =>
"table engine can not be empty",
41 self::INVALID =>
'Engine %value% is not valid engine type',
42 self::NOT_AVAIBLE =>
"Engine %value% is not avaible"
48 protected $_tableEngines = array(
71 $value = $schema->__get(
'engine');
75 $this->_error(self::ENGINE_EMPTY);
78 if (!in_array(strtoupper($value), $this->_tableEngines)) {
79 $this->_error(self::INVALID, $value);