X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=vendor%2Fsmarty%2Fsmarty%2Flibs%2Fsysplugins%2Fsmarty_internal_compile_private_object_function.php;fp=vendor%2Fsmarty%2Fsmarty%2Flibs%2Fsysplugins%2Fsmarty_internal_compile_private_object_function.php;h=0000000000000000000000000000000000000000;hb=6cbf44f4f67a725a5b93b68c9e1b5d97e27b8131;hp=7f78a421ef86c57a24c2fb268ee1d34d10d64e28;hpb=5a88215cab5689772b5a8490b14540ba634b3e24;p=friendica.git diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php deleted file mode 100644 index 7f78a421ef..0000000000 --- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php +++ /dev/null @@ -1,86 +0,0 @@ -getAttributes($compiler, $args); - //Does tag create output - $compiler->has_output = isset($_attr[ 'assign' ]) ? false : true; - - unset($_attr[ 'nocache' ]); - $_assign = null; - if (isset($_attr[ 'assign' ])) { - $_assign = $_attr[ 'assign' ]; - unset($_attr[ 'assign' ]); - } - // method or property ? - if (is_callable(array($compiler->smarty->registered_objects[ $tag ][ 0 ], $method))) { - // convert attributes into parameter array string - if ($compiler->smarty->registered_objects[ $tag ][ 2 ]) { - $_paramsArray = array(); - foreach ($_attr as $_key => $_value) { - if (is_int($_key)) { - $_paramsArray[] = "$_key=>$_value"; - } else { - $_paramsArray[] = "'$_key'=>$_value"; - } - } - $_params = 'array(' . implode(",", $_paramsArray) . ')'; - $output = "\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]->{$method}({$_params},\$_smarty_tpl)"; - } else { - $_params = implode(",", $_attr); - $output = "\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]->{$method}({$_params})"; - } - } else { - // object property - $output = "\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]->{$method}"; - } - if (!empty($parameter[ 'modifierlist' ])) { - $output = $compiler->compileTag('private_modifier', array(), - array('modifierlist' => $parameter[ 'modifierlist' ], 'value' => $output)); - } - //Does tag create output - $compiler->has_output = isset($_attr[ 'assign' ]) ? false : true; - - if (empty($_assign)) { - return "\n"; - } else { - return "assign({$_assign},{$output});?>\n"; - } - } -}