PageRenderTime 24ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/Haanga/Extension/Tag/Setsafe.php

http://github.com/crodas/Haanga
PHP | 17 lines | 14 code | 3 blank | 0 comment | 1 complexity | ef193da08d2ed2b0dbba60d70bec066f MD5 | raw file
 1<?php
 2
 3class Haanga_Extension_Tag_SetSafe
 4{
 5    public $is_block = FALSE;
 6
 7    static function generator($cmp, $args)
 8    {
 9        foreach ($args as $arg) {
10            if (Haanga_AST::is_var($arg)) {
11                $cmp->set_safe($arg['var']);
12            }
13        }
14
15        return hcode();
16    }
17}