public function displayInputs($fileArray, $parents = [], $parent = '', $level = 0)
    {
        $level++;
        if ($parent) {
            $parents[] = $parent;
        }
        foreach ($fileArray as $key => $item) {
            if (is_array($item)) {
                echo view()->make('langfilemanager::language_headers', ['header' => $key, 'parents' => $parents, 'level' => $level, 'item' => $item, 'langfile' => $this, 'lang_file_name' => $this->file])->render();
            } else {
                echo view()->make('langfilemanager::language_inputs', ['key' => $key, 'item' => $item, 'parents' => $parents, 'lang_file_name' => $this->file])->render();
            }
        }
    }
public function displayInputs($fileArray, $parents = [], $parent = '', $level = 0)
    {
        $level++;
        if ($parent) {
            $parents[] = $parent;
        }
        foreach ($fileArray as $key => $item) {
            if (is_array($item)) {
                echo view()->make('langfilemanager::language_headers', ['header' => $key, 'parents' => $parents, 'level' => $level, 'item' => $item, 'langfile' => $this, 'lang_file_name' => $this->file])->render();
            } else {
                echo view()->make('langfilemanager::language_inputs', ['key' => $key, 'item' => $item, 'parents' => $parents, 'lang_file_name' => $this->file])->render();
            }
        }
    }
public function displayInputs ( $ fileArray , $ parents = [ ] , $ parent = '' , $ level = 0 ) { $ level ++ ; if ( $ parent ) { $ parents [ ] = $ parent ; } foreach ( $ fileArray as $ key => $ item ) { if ( is_array ( $ item ) ) { echo view ( ) -> make ( 'langfilemanager::language_headers' , [ 'header' => $ key , 'parents' => $ parents , 'level' => $ level , 'item' => $ item , 'langfile' => $ this , 'lang_file_name' => $ this -> file ] ) -> render ( ) ; } else { echo view ( ) -> make ( 'langfilemanager::language_inputs' , [ 'key' => $ key , 'item' => $ item , 'parents' => $ parents , 'lang_file_name' => $ this -> file ] ) -> render ( ) ; } } }
display the form that permits the editing.
@param 	array  		$fileArray		the array with all the texts
@param 	array  		$parents  		all the ancestor keys of the current key
@param 	string 		$parent   		the parent key of the current key
@param 	int		$level    		the current level
@return	void
display the form that permits the editing .