PHP 클래스 Newscoop\Utils\Validation

파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

공개 메소드들

메소드 설명
notEmpty ( mixed $parameter, string $name = 'unknown' ) Validates if the provided parameter is null or empty.
notNull ( mixed $parameter, string $name = 'unknown' ) Validates if the provided parameter is null.

비공개 메소드들

메소드 설명
__construct ( ) * ---------------------------------------------------------------

메소드 상세

notEmpty() 공개 정적인 메소드

Will throw exception if this is the case.
public static notEmpty ( mixed $parameter, string $name = 'unknown' )
$parameter mixed The parameter to check for nullity or empty.
$name string The parameter name used for displaying the exception default 'unknown'.

notNull() 공개 정적인 메소드

Will throw exception if this is the case.
public static notNull ( mixed $parameter, string $name = 'unknown' )
$parameter mixed The parameter to check for nullity.
$name string The parameter name used for displaying the exception default 'unknown'.