|
Widely used assertions.
More...
Inheritance diagram for Assert:
[legend]List of all members.
|
Static Public Member Functions |
| static | isTrue ($boolean, $message=null) |
| static | isFalse ($boolean, $message=null) |
| static | isArray (&$variable, $message=null) |
| static | isInteger ($variable, $message=null) |
| static | isString (&$variable, $message=null) |
| static | isBoolean (&$variable, $message=null) |
| static | isTernaryBase (&$variable, $message=null) |
| static | brothers (&$first, &$second, $message=null) |
Static Private Member Functions |
| static | fail ($message=null) |
Detailed Description
Widely used assertions.
Definition at line 18 of file Assert.class.php.
Member Function Documentation
| static Assert::isTrue |
( |
$ |
boolean, |
|
|
$ |
message = null | |
|
) |
| | [static] |
Definition at line 20 of file Assert.class.php.
Referenced by Color::__construct(), RedirectToView::__construct(), UnifiedContainer::__construct(), FullText::__construct(), LogicalBlock::__construct(), VoodooDaoWorker::cacheListByQuery(), SmartDaoWorker::cacheListByQuery(), PostgresDialect::checkColumn(), LiteDialect::checkColumn(), MetaConfiguration::checkSanity(), IndependentLinkDAO::checkType(), DependentDAO::checkType(), DateRange::clip(), CodeGenerator::generateOneSymbol(), PlainForm::getActualChoiceValue(), PlainForm::getChoiceValue(), MimeMail::getEncodedBody(), MimeMail::getHeaders(), ArrayUtils::getIdsArray(), Singleton::getInstance(), DBSchema::getTableByName(), PrimitiveIdentifier::importValue(), PrimitiveEnumeration::importValue(), PrimitiveDate::importValue(), DateRange::isNeighbour(), MetaConfiguration::load(), MimePart::loadBodyFromFile(), PrimitiveIdentifier::of(), PrimitiveEnumeration::of(), PlainList::offsetSet(), IndexedList::offsetSet(), Sequenceless::query(), SimplePhpView::render(), CommandChain::run(), PrimitiveDate::setDefault(), DBFactory::setDefaultInstance(), Time::setHour(), PrimitiveDate::setMax(), PrimitiveDate::setMin(), Time::setMinute(), UnifiedContainer::setObjectQuery(), DataType::setPrecision(), DBColumn::setReference(), DataType::setScale(), Time::setSecond(), DataType::setSize(), DataType::setTimezoned(), PrimitiveRange::setValue(), PrimitiveDate::setValue(), IdentifiablePrimitive::setValue(), ModelAndView::setView(), OneToManyLinkedLazy::sync(), ManyToManyLinkedLazy::sync(), TruncateQuery::toDialectString(), SelectQuery::toDialectString(), and PartViewer::view().
| static Assert::isFalse |
( |
$ |
boolean, |
|
|
$ |
message = null | |
|
) |
| | [static] |
| static Assert::isArray |
( |
&$ |
variable, |
|
|
$ |
message = null | |
|
) |
| | [static] |
Definition at line 31 of file Assert.class.php.
Referenced by FullText::__construct(), Session::arrayAssign(), InsertOrUpdateQuery::arraySet(), VoodooDaoWorker::cacheListByQuery(), SmartDaoWorker::cacheListByQuery(), ArrayUtils::columnFromSet(), PostgresDialect::prepareFullText(), MyDialect::prepareFullText(), UnifiedContainer::replaceList(), UnifiedContainer::save(), PrimitiveFile::setAllowedMimeTypes(), and UnifiedContainer::setList().
| static Assert::isInteger |
( |
$ |
variable, |
|
|
$ |
message = null | |
|
) |
| | [static] |
Definition at line 37 of file Assert.class.php.
Referenced by Range::__construct(), PrimitiveInteger::import(), PrimitiveIdentifier::importValue(), SelectQuery::limit(), Form::markCustom(), HeaderUtils::sendContentLength(), IntegerType::setDefault(), Range::setMax(), Range::setMin(), DataType::setPrecision(), DataType::setScale(), MetaClassProperty::setSize(), and DataType::setSize().
| static Assert::isString |
( |
&$ |
variable, |
|
|
$ |
message = null | |
|
) |
| | [static] |
| static Assert::isBoolean |
( |
&$ |
variable, |
|
|
$ |
message = null | |
|
) |
| | [static] |
| static Assert::isTernaryBase |
( |
&$ |
variable, |
|
|
$ |
message = null | |
|
) |
| | [static] |
| static Assert::brothers |
( |
&$ |
first, |
|
|
&$ |
second, |
|
|
$ |
message = null | |
|
) |
| | [static] |
| static Assert::fail |
( |
$ |
message = null |
) |
[static, private] |
The documentation for this class was generated from the following file:
|