コード例 #1
0
ファイル: Trigger.php プロジェクト: TheProjecter/sylma
 protected function addToTree(sql\template\component\Rooted $tree)
 {
     $aResult = array();
     $content = $this->build();
     if ($this->readx('@return')) {
         $test = $this->getHandler()->getView()->addToResult($content, false, true);
         $aResult[] = $tree->addTrigger(array($test));
     } else {
         $aResult[] = $tree->addTrigger(array($content));
     }
     return $aResult;
 }
コード例 #2
0
ファイル: Token.php プロジェクト: TheProjecter/sylma
 protected function buildForm(template\component\Rooted $table)
 {
     $token = $table->getToken();
     $path = $this->parseComponentRoot($this->getNode());
     return array($token->getInsert(), $token->call('savePath', array($this->getWindow()->createString($path)))->getInsert());
 }
コード例 #3
0
ファイル: Result.php プロジェクト: TheProjecter/sylma
 protected function getFromTree(sql\template\component\Rooted $tree)
 {
     return $tree->getResult();
 }