Source of file Vote.php
Size: 0,359 Bytes - Last Modified: 2021-12-23T10:09:13+00:00
/var/www/docs.ssmods.com/process/src/code/models/Vote.php
12345678910111213141516171819202122 | <?php class Vote extends DataObject { /** * @var array */ private static $db = [ 'Status' => 'enum(array("Like", "Dislike"))' ]; /** * @var array */ private static $has_one = [ 'Page' => 'Page', 'Comment' => 'Comment', // can vote on a Page OR a Comment 'Member' => 'Member' ]; } |