Command/TranslationsBaseCommand.php
/**
     * dimensional associative array of keys to associative array indexed
     *
     * @param $orig
     *
     * @return array
     */
dimensional associative array of keys to associative array indexed
@param $orig

@return array
dimensional associative array of keys to associative array indexed @param $orig @return array
protected function k2a($orig)
    {
        $result = array();
        foreach($orig as $key=>$value){
            if($value===null){
            }else{
                $keys = explode('.',$key);
                $node = $value;
                for($i = count($keys); $i>0; $i--){
                    $k = $keys[$i-1];
                    $node = array($k => $node);
                }
                $result = array_merge_recursive($result, $node);
            }
        }
        return $result;
    }
protected function k2a ( $ orig ) { $ result = array ( ) ; foreach ( $ orig as $ key => $ value ) { if ( $ value === null ) { } else { $ keys = explode ( '.' , $ key ) ; $ node = $ value ; for ( $ i = count ( $ keys ) ; $ i > 0 ; $ i -- ) { $ k = $ keys [ $ i - 1 ] ; $ node = array ( $ k => $ node ) ; } $ result = array_merge_recursive ( $ result , $ node ) ; } } return $ result ; }
dimensional associative array of keys to associative array indexed
 @param $orig
dimensional associative array of keys to associative array indexed @param $orig