コード例 #1
0
ファイル: data.user.php プロジェクト: hevesg/mixat
 public function execute(array &$param_pool = null)
 {
     $result = new XMLElement($this->dsParamROOTELEMENT);
     try {
         $result = parent::execute($param_pool);
     } catch (FrontendPageNotFoundException $e) {
         // Work around. This ensures the 404 page is displayed and
         // is not picked up by the default catch() statement below
         FrontendPageNotFoundExceptionHandler::render($e);
     } catch (Exception $e) {
         $result->appendChild(new XMLElement('error', $e->getMessage() . ' on ' . $e->getLine() . ' of file ' . $e->getFile()));
         return $result;
     }
     if ($this->_force_empty_result) {
         $result = $this->emptyXMLSet();
     }
     if ($this->_negate_result) {
         $result = $this->negateXMLSet();
     }
     return $result;
 }
コード例 #2
0
 public function __construct($env = NULL, $process_params = true)
 {
     parent::__construct($env, $process_params);
     $this->_dependencies = array();
 }
コード例 #3
0
<?php

$authorDS = new AuthorDatasource(array(), false);
$classParams = get_object_vars($this);
foreach ($classParams as $key => $value) {
    $authorDS->{$key} = $value;
}
$result = $authorDS->execute($param_pool);
return $result;