function fetch(&$master) { // チケットチェック if (!exOnetimeTicket::inquiry(strtolower(get_class($this)))) { $this->addError(_MD_PLZXOO_ERROR_TICKET); // 再発行 $this->ticket_ = new exOnetimeTicket(strtolower(get_class($this)), 3600); $this->ticket_->setSession(); } else { exOnetimeTicket::unsetSession(strtolower(get_class($this))); } $this->comment_ = trim($_POST['comment']); //if(!$this->validateMaxLength($this->comment_, 255)) { // $this->addError(_MD_PLZXOO_ERROR_COMMENT_SIZEOVER); //} }
function fetch(&$master) { // チケットチェック if (!exOnetimeTicket::inquiry(strtolower(get_class($this)))) { $this->addError(_MD_PLZXOO_ERROR_TICKET); // 再発行 $this->ticket_ = new exOnetimeTicket(strtolower(get_class($this)), 3600); $this->ticket_->setSession(); } else { exOnetimeTicket::unsetSession(strtolower(get_class($this))); } $this->body_ = $_POST['body']; if (!$this->body_) { $this->addError(_MD_PLZXOO_ERROR_BODY_REQUIRED); } }
function fetch(&$master) { if (!exOnetimeTicket::inquiry(strtolower(get_class($this)))) { $this->addError(_MD_PLZXOO_ERROR_TICKET); // 再発行 $this->ticket_ = new exOnetimeTicket(strtolower(get_class($this)), 3600); $this->ticket_->setSession(); } else { exOnetimeTicket::unsetSession(strtolower(get_class($this))); } $this->subject_ = trim(@$_POST['subject']); if (!$this->subject_) { $this->addError(_MD_PLZXOO_ERROR_SUBJECT_REQUIRED); } if (!$this->validateMaxLength($this->subject_, 255)) { $this->addError(_MD_PLZXOO_ERROR_SUBJECT_SIZEOVER); } // 指定されたカテゴリが存在するか確認 $this->cid_ = intval(@$_POST['cid']); $handler =& plzXoo::getHandler('category'); if (!is_object($handler->get($this->cid_))) { $this->addError(_MD_PLZXOO_ERROR_CID_INJURY); } $this->priority_ = intval(@$_POST['priority']); if (!$this->validateInRange($this->priority_, 1, 5)) { $this->addError(_MD_PLZXOO_ERROR_PRIORITY_RANGEOVER); } // 管理者だけがstatusの直接変更権限を持つ if (is_object($GLOBALS['xoopsUser']) && $GLOBALS['xoopsUser']->isAdmin()) { $this->status_ = intval(@$_POST['status']); $status_keys = array_keys($GLOBALS['plzxoo_status_mapping']); if (!$this->validateInRange($this->status_, min($status_keys), max($status_keys))) { $this->addError(_MD_PLZXOO_ERROR_STATUS_RANGEOVER); } } $this->body_ = @$_POST['body']; if (!$this->body_) { $this->addError(_MD_PLZXOO_ERROR_BODY_REQUIRED); } }