- ⌂ Object
- Methods
Object::has_dimensions()
Return TRUE if the object has dimensions.
Prototype
boolean has_dimensions()
Return
TRUE if the object has one or more dimension fields. Otherwise, FALSE.
An object must extend Content to have dimensions. Otherwise FALSE is always returned.
Example
$repo = \comand::repo();
$contact = $repo->get_first('FROM Contact LIMIT 1');
$has_dimensions = $contact->has_dimensions();