示例#1
0
文件: Style.php 项目: abdulghanni/gsm
 public function inherit(AbstractTag $tag)
 {
     $group = $tag->getParentGroup();
     if ($group) {
         $parent_style = $group->getStyle();
         foreach ($parent_style as $_key => $_value) {
             if ($_value !== null) {
                 $this->{$_key} = $_value;
             }
         }
     }
 }