コード例 #1
0
ファイル: Properties.php プロジェクト: sas171/dill
 public function Dispatch(Dill_Dispatcher_Message $Message)
 {
     $this->Caller = $Message->GetCaller();
     $MessageName = $Message->GetName();
     if (strpos($MessageName, 'Get') === 0) {
         $Output = $this->GetValue(substr($MessageName, 3));
     } elseif (strpos($MessageName, 'Set') === 0) {
         $Output = $this->SetValue(substr($MessageName, 3), reset($Message->GetArguments()));
     } elseif (strpos($MessageName, 'Unset') === 0) {
         $Output = $this->UnsetValue(substr($MessageName, 5));
     } elseif (strpos($MessageName, 'Isset') === 0) {
         $Output = $this->IssetValue(substr($MessageName, 5));
     } elseif (strpos($MessageName, 'HasProperty') === 0) {
         $Output = $this->HasProperty(reset($Message->GetArguments()));
     } else {
         return false;
     }
     $Message->SetOutput($Output);
 }