protected function getSelectionParams()
    {
        $result = $this->getSession('media_crop_selection_params');

        if ($result) {
            if (!isset($result['mode'])) {
                $result['mode'] = self::SELECTION_MODE_NORMAL;
            }

            if (!isset($result['width'])) {
                $result['width'] = null;
            }

            if (!isset($result['height'])) {
                $result['height'] = null;
            }

            return $result;
        }

        return [
            'mode'   => self::SELECTION_MODE_NORMAL,
            'width'  => null,
            'height' => null
        ];
    }
protected function getSelectionParams()
    {
        $result = $this->getSession('media_crop_selection_params');

        if ($result) {
            if (!isset($result['mode'])) {
                $result['mode'] = self::SELECTION_MODE_NORMAL;
            }

            if (!isset($result['width'])) {
                $result['width'] = null;
            }

            if (!isset($result['height'])) {
                $result['height'] = null;
            }

            return $result;
        }

        return [
            'mode'   => self::SELECTION_MODE_NORMAL,
            'width'  => null,
            'height' => null
        ];
    }
protected function getSelectionParams ( ) { $ result = $ this -> getSession ( 'media_crop_selection_params' ) ; if ( $ result ) { if ( ! isset ( $ result [ 'mode' ] ) ) { $ result [ 'mode' ] = self :: SELECTION_MODE_NORMAL ; } if ( ! isset ( $ result [ 'width' ] ) ) { $ result [ 'width' ] = null ; } if ( ! isset ( $ result [ 'height' ] ) ) { $ result [ 'height' ] = null ; } return $ result ; } return [ 'mode' => self :: SELECTION_MODE_NORMAL , 'width' => null , 'height' => null ] ; }
Gets the user selection parameters from the session state
@return array
Gets the user selection parameters from the session state