private function isAllowedToDispatch(Space $space, Proposal $proposal) {/*{{{*/ $allow = $space->ensureToAnswer(); if ($proposal->isComplicatedToPickup()) { $cnt = DAL::get()->querySpacePickupCnt('proposal', $space); if($cnt >= self::MAX_ALLOW_PICKUP_CNT) { return 833; } } if($proposal->hasPickedUp()) { return 834; } if(false == $space->isDoctor()) { return 835; } return $this->ensureToAnswerByRecommendCategory($space, $proposal); }/*}}}*/