HistoryTable.php 571 B

12345678910111213141516171819202122232425
  1. <?php
  2. class HistoryTable extends BaseHistoryTable
  3. {
  4. public function __construct($user="",$gid="",$act="",$arguments="",$rcode="")
  5. {
  6. parent::__construct();
  7. $this->setUser($user);
  8. $this->setGid($gid);
  9. if (!is_null($act))
  10. {
  11. $c = new Criteria();
  12. $c->add(ActionsTablePeer::ACTION,$act);
  13. $action = ActionsTablePeer::doSelectOne($c);
  14. if ($action) $this->setActionId($action->getId());
  15. }
  16. $this->setArguments($arguments);
  17. $this->setReturnCode($rcode);
  18. }
  19. public function getAction()
  20. {
  21. $this->getActionsTable()->getAction();
  22. }
  23. }