コード例 #1
0
 function tagstart_interface_function($attr)
 {
     $err = $this->checkAttributes($attr, array("name"));
     if (PEAR::isError($err)) {
         return $err;
     }
     $method = new CodeGen_PECL_Element_Method($this->helper);
     $method->isAbstract();
     $method->isInterface();
     $this->pushHelper($method);
     if (isset($attr["name"])) {
         $err = $method->setName($attr["name"]);
         if (PEAR::isError($err)) {
             return $err;
         }
     } else {
         return PEAR::raiseError("'name' attribut for <function> missing");
     }
     return true;
 }