extension/ezjscore/classes/ezjscserverfunctionsjs.php
protected static function makePostArray( eZHTTPTool $http, $key )
    {
        if ( $http->hasPostVariable( $key ) && $http->postVariable( $key ) !== '' )
        {
            $value = $http->postVariable( $key );
            if ( is_array( $value ) )
                return $value;
            elseif( strpos($value, ',') === false )
                return array( $value );
            else
                return explode( ',', $value );
        }
        return array();
    }
protected static function makePostArray( eZHTTPTool $http, $key )
    {
        if ( $http->hasPostVariable( $key ) && $http->postVariable( $key ) !== '' )
        {
            $value = $http->postVariable( $key );
            if ( is_array( $value ) )
                return $value;
            elseif( strpos($value, ',') === false )
                return array( $value );
            else
                return explode( ',', $value );
        }
        return array();
    }
protected static function makePostArray ( eZHTTPTool $ http , $ key ) { if ( $ http -> hasPostVariable ( $ key ) && $ http -> postVariable ( $ key ) !== '' ) { $ value = $ http -> postVariable ( $ key ) ; if ( is_array ( $ value ) ) return $ value ; elseif ( strpos ( $ value , ',' ) === false ) return array ( $ value ) ; else return explode ( ',' , $ value ) ; } return array ( ) ; }
Creates an array out of a post parameter, return empty array if post parameter is not set.
Splits string on ',' in case of comma seperated values.

@param eZHTTPTool $http
@param string $key
@return array
Creates an array out of a post parameter return empty array if post parameter is not set . Splits string on in case of comma seperated values .