Phundament App Class Reference
  • Package
  • Class
  • Tree

Packages

  • bootstrap
    • widgets
      • input
  • Image
  • None
  • p3admin
  • p3extensions
    • behaviors
    • commands
    • components
    • helpers
    • widgets
  • p3media
    • actions
    • controllers
    • models
  • p3pages
    • models
  • p3widgets
    • components
    • models
  • PHP
  • system
    • db
      • ar
    • gii
    • web
      • auth
      • helpers
      • widgets
  • yiiext
    • widgets
      • fancybox
      • lipsum
  • zii
    • widgets
      • grid

Classes

  • P3ArrayValidator
  • P3BootstrapCommand
  • P3MediaCommand
  • P3RsyncCommand

Class P3ArrayValidator

CArrayValidator validates that the attribute value is of certain length.

Note, this validator should only be used with Array-typed attributes.

CComponent
Extended by CValidator
Extended by P3ArrayValidator
Package: p3extensions\commands
Copyright: Copyright © 2005-2012 diemeisterei GmbH
License: http://www.phundament.com/license/
Author: Tobias Munk <schmunk@usrbin.de>
Since: 3.0.3
Located at phundament/p3extensions/validators/P3ArrayValidator.php

Methods summary

protected
# validateAttribute( CModel $object, Array $attribute )

Validates the attribute of the object. If there is any error, the error message is added to the object.

Validates the attribute of the object. If there is any error, the error message is added to the object.

Parameters

$object
CModel
the object being validated
$attribute
Array
the attribute being validated

Methods inherited from CValidator

addError(), applyTo(), clientValidateAttribute(), createValidator(), isEmpty(), validate()

Methods inherited from CComponent

__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()

Magic methods summary

Properties summary

public integer $max
#

maximum length. Defaults to null, meaning no maximum limit.

maximum length. Defaults to null, meaning no maximum limit.

public integer $min
#

minimum length. Defaults to null, meaning no minimum limit.

minimum length. Defaults to null, meaning no minimum limit.

public integer $is
#

exact length. Defaults to null, meaning no exact length limit.

exact length. Defaults to null, meaning no exact length limit.

public Array $tooShort
#

user-defined error message used when the value is too long.

user-defined error message used when the value is too long.

public Array $tooLong
#

user-defined error message used when the value is too short.

user-defined error message used when the value is too short.

public boolean $allowEmpty
#

whether the attribute value can be null or empty. Defaults to true, meaning that if the attribute is empty, it is considered valid.

whether the attribute value can be null or empty. Defaults to true, meaning that if the attribute is empty, it is considered valid.

Properties inherited from CValidator

$attributes, $builtInValidators, $enableClientValidation, $except, $message, $on, $safe, $skipOnError

Phundament App Class Reference API documentation generated by ApiGen 2.8.0