Class humhub\models\forms\CropProfileImage

Inheritancehumhub\models\forms\CropProfileImage » yii\base\Model
Available since version0.5

CropProfileImageForm is a form for image cropping.

Will used by user or space profile image cropping.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$aspectRatio integer Image ratio humhub\models\forms\CropProfileImage
$cropH Int Is the height of the area humhub\models\forms\CropProfileImage
$cropSetSelect array Crop default position humhub\models\forms\CropProfileImage
$cropW Int Is the width of the area humhub\models\forms\CropProfileImage
$cropX Int X Coordinates of the area humhub\models\forms\CropProfileImage
$cropY Int Y Coordinates of the area humhub\models\forms\CropProfileImage

Public Methods

Hide inherited methods

MethodDescriptionDefined By
rules() Declares the validation rules. humhub\models\forms\CropProfileImage

Property Details

$aspectRatio public property

Image ratio

public integer $aspectRatio 1
$cropH public property

Is the height of the area

public Int $cropH null
$cropSetSelect public property

Crop default position

public array $cropSetSelect = [00100100]
$cropW public property

Is the width of the area

public Int $cropW null
$cropX public property

X Coordinates of the area

public Int $cropX null
$cropY public property

Y Coordinates of the area

public Int $cropY null

Method Details

rules() public method

Declares the validation rules.

public Array rules ( )
return Array

Validation Rules