Add enum support for Orientation and Scheme to Events

pull/2767/head
Isaac Connor 2019-11-29 13:48:20 -05:00
parent d02e30ceca
commit 4817efe17c
1 changed files with 7 additions and 0 deletions

View File

@ -102,6 +102,13 @@ class Event extends AppModel {
),
);
public $actsAs = array(
'CakePHP-Enum-Behavior.Enum' => array(
'Orientation' => array('ROTATE_0','ROTATE_90','ROTATE_180','ROTATE_270','FLIP_HORI','FLIP_VERT'),
'Scheme' => array('Deep','Medium','Shallow')
)
);
public function Relative_Path() {
$Event = new ZM\Event($this->id);
return $Event->Relative_Path();