예제 #1
0
 function _parseRequest($xmlnode)
 {
     $handlerName = $xmlnode->getAttribute('handler');
     App::import('Lib', 'ClassCollection');
     $handler = ClassCollection::getObject('linkAction', $handlerName);
     if ($handler) {
         $aro = array();
         if (!empty($this->user)) {
             $aro[] = $this->User->myNodeRef($this->user['User']['id']);
         }
         $handler->defaultAro = $aro;
         $handler->controller = $this;
         unset($aro, $handlerName);
         // free ressources
         return $handler->execute($xmlnode);
     } else {
         return LinkAction::invalidRequest($xmlnode, 404);
     }
 }