src/Pdf.php
private function blockNameTrans($name, $block, &$opts)
	{
		$this->debug->groupCollapsed(__CLASS__.'->'.__FUNCTION__);
		$func = $opts['name_trans_func'][0];
		$params = array_slice($opts['name_trans_func'], 1);
		$strObj = new Str();
		if (!isset($opts['trans_func_params_sub'])) {
			$opts['trans_func_params_sub'] = array();
			foreach ($params as $k => $v) {
				$params[$k] = $strObj->quickTemp($v, $block);
				if ($params[$k] != $v) {
					$opts['trans_func_params_sub'][] = $k;
				}
			}
		} else {
			foreach ($opts['trans_func_params_sub'] as $k) {
				$params[$k] = $strObj->quickTemp($params[$k], $block);
			}
		}
		$name_new = call_user_func_array($func, $params);
		$this->debug->groupEnd();
		return $name_new;
	}
private function blockNameTrans($name, $block, &$opts)
	{
		$this->debug->groupCollapsed(__CLASS__.'->'.__FUNCTION__);
		$func = $opts['name_trans_func'][0];
		$params = array_slice($opts['name_trans_func'], 1);
		$strObj = new Str();
		if (!isset($opts['trans_func_params_sub'])) {
			$opts['trans_func_params_sub'] = array();
			foreach ($params as $k => $v) {
				$params[$k] = $strObj->quickTemp($v, $block);
				if ($params[$k] != $v) {
					$opts['trans_func_params_sub'][] = $k;
				}
			}
		} else {
			foreach ($opts['trans_func_params_sub'] as $k) {
				$params[$k] = $strObj->quickTemp($params[$k], $block);
			}
		}
		$name_new = call_user_func_array($func, $params);
		$this->debug->groupEnd();
		return $name_new;
	}
private function blockNameTrans ( $ name , $ block , & $ opts ) { $ this -> debug -> groupCollapsed ( __CLASS__ . '->' . __FUNCTION__ ) ; $ func = $ opts [ 'name_trans_func' ] [ 0 ] ; $ params = array_slice ( $ opts [ 'name_trans_func' ] , 1 ) ; $ strObj = new Str ( ) ; if ( ! isset ( $ opts [ 'trans_func_params_sub' ] ) ) { $ opts [ 'trans_func_params_sub' ] = array ( ) ; foreach ( $ params as $ k => $ v ) { $ params [ $ k ] = $ strObj -> quickTemp ( $ v , $ block ) ; if ( $ params [ $ k ] != $ v ) { $ opts [ 'trans_func_params_sub' ] [ ] = $ k ; } } } else { foreach ( $ opts [ 'trans_func_params_sub' ] as $ k ) { $ params [ $ k ] = $ strObj -> quickTemp ( $ params [ $ k ] , $ block ) ; } } $ name_new = call_user_func_array ( $ func , $ params ) ; $ this -> debug -> groupEnd ( ) ; return $ name_new ; }
attempt to transform the block name

@param string $name  name
@param array  $block block as returned by getBlocks() and getProperties()
@param array  $opts  options

@return string
attempt to transform the block name