model.php 571 B

1234567891011121314151617181920212223
  1. <?php
  2. class requirementModel extends model
  3. {
  4. /**
  5. * @param object $data
  6. * @param string $action
  7. */
  8. public static function isClickable($data, $action)
  9. {
  10. global $app;
  11. $app->control->loadModel('story');
  12. return call_user_func_array(array('storyModel', 'isClickable'), array($data, $action));
  13. }
  14. /**
  15. * @param object $story
  16. * @param string $actionType
  17. */
  18. public function getToAndCcList($story, $actionType)
  19. {
  20. return $this->loadModel('story')->getToAndCcList($story, $actionType);
  21. }
  22. }