protected function resolvePosition($positions)
    {
        $str = '';
        foreach ($positions as $pos => $val) {
            $str .= "{$pos}: {$val}px; ";
        }

        return rtrim($str);
    }
protected function resolvePosition($positions)
    {
        $str = '';
        foreach ($positions as $pos => $val) {
            $str .= "{$pos}: {$val}px; ";
        }

        return rtrim($str);
    }
protected function resolvePosition ( $ positions ) { $ str = '' ; foreach ( $ positions as $ pos => $ val ) { $ str .= "{$pos}: {$val}px; " ; } return rtrim ( $ str ) ; }
Helper function to convert a position array to a correct style attribute string.
@param $positions array the position array
@return string
Helper function to convert a position array to a correct style attribute string .