Class luya\web\jsonld\Place

Inheritanceluya\web\jsonld\Place » luya\web\jsonld\BaseThing » yii\base\BaseObject
Implementsluya\web\jsonld\PlaceInterface, luya\web\jsonld\ThingInterface, yii\base\Arrayable, yii\base\Configurable
Uses Traitsluya\web\jsonld\PlaceTrait, luya\web\jsonld\ThingTrait, yii\base\ArrayableTrait
Available since version1.0.0

JsonLd - Place

Entities that have a somewhat fixed, physical extension.

See also http://schema.org/Place.

Public Properties

Hide inherited properties

Property Type Description Defined By
$additionalProperty luya\web\jsonld\PropertyValue luya\web\jsonld\PlaceTrait
$additionalType string luya\web\jsonld\ThingTrait
$address luya\web\jsonld\PostalAddress|string luya\web\jsonld\PlaceTrait
$aggregateRating luya\web\jsonld\AggregateRating luya\web\jsonld\PlaceTrait
$alternateName string luya\web\jsonld\ThingTrait
$amenityFeature \luya\web\jsonld\LocationFeatureSpecification luya\web\jsonld\PlaceTrait
$branchCode string luya\web\jsonld\PlaceTrait
$containedInPlace luya\web\jsonld\Place luya\web\jsonld\PlaceTrait
$containsPlace luya\web\jsonld\Place luya\web\jsonld\PlaceTrait
$description string luya\web\jsonld\ThingTrait
$disambiguatingDescription string luya\web\jsonld\ThingTrait
$event luya\web\jsonld\Event luya\web\jsonld\PlaceTrait
$faxNumber string luya\web\jsonld\PlaceTrait
$geo luya\web\jsonld\GeoCoordinates luya\web\jsonld\PlaceTrait
$geospatiallyContains mixed luya\web\jsonld\PlaceTrait
$geospatiallyCoveredBy mixed luya\web\jsonld\PlaceTrait
$geospatiallyCovers \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place luya\web\jsonld\PlaceTrait
$geospatiallyCrosses \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place luya\web\jsonld\PlaceTrait
$geospatiallyDisjoint \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place luya\web\jsonld\PlaceTrait
$geospatiallyEquals \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place luya\web\jsonld\PlaceTrait
$geospatiallyIntersects \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place luya\web\jsonld\PlaceTrait
$geospatiallyOverlaps \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place luya\web\jsonld\PlaceTrait
$geospatiallyTouches \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place luya\web\jsonld\PlaceTrait
$geospatiallyWithin \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place luya\web\jsonld\PlaceTrait
$globalLocationNumber string luya\web\jsonld\PlaceTrait
$hasMap \luya\web\jsonld\Map luya\web\jsonld\PlaceTrait
$identifier luya\web\jsonld\PropertyValue luya\web\jsonld\ThingTrait
$image luya\web\jsonld\ImageObject luya\web\jsonld\ThingTrait
$isAccessibleForFree boolean luya\web\jsonld\PlaceTrait
$isicV4 string luya\web\jsonld\PlaceTrait
$mainEntityOfPage luya\web\jsonld\CreativeWork luya\web\jsonld\ThingTrait
$maximumAttendeeCapacity integer luya\web\jsonld\PlaceTrait
$name string luya\web\jsonld\ThingTrait
$offers luya\web\jsonld\Offer luya\web\jsonld\ThingTrait
$openingHoursSpecification \luya\web\jsonld\OpeningHoursSpecification luya\web\jsonld\PlaceTrait
$photo luya\web\jsonld\ImageObject|\luya\web\jsonld\Photograph luya\web\jsonld\PlaceTrait
$publicAccess boolean luya\web\jsonld\PlaceTrait
$review luya\web\jsonld\Review luya\web\jsonld\PlaceTrait
$sameAs string luya\web\jsonld\ThingTrait
$smokingAllowed boolean luya\web\jsonld\PlaceTrait
$specialOpeningHoursSpecification \luya\web\jsonld\OpeningHoursSpecification luya\web\jsonld\PlaceTrait
$subjectOf luya\web\jsonld\CreativeWork|luya\web\jsonld\Event luya\web\jsonld\ThingTrait
$telephone string luya\web\jsonld\PlaceTrait
$url string luya\web\jsonld\ThingTrait

Public Methods

Hide inherited methods

Method Description Defined By
__call() Calls the named method which is not a class method. yii\base\BaseObject
__construct() Constructor. yii\base\BaseObject
__get() Returns the value of an object property. yii\base\BaseObject
__isset() Checks if a property is set, i.e. defined and not null. yii\base\BaseObject
__set() Sets value of an object property. yii\base\BaseObject
__unset() Sets an object property to null. yii\base\BaseObject
canGetProperty() Returns a value indicating whether a property can be read. yii\base\BaseObject
canSetProperty() Returns a value indicating whether a property can be set. yii\base\BaseObject
className() Returns the fully qualified name of this class. yii\base\BaseObject
extraFields() Returns the list of fields that can be expanded further and returned by toArray(). yii\base\ArrayableTrait
fields() Returns the list of fields that should be returned by default by toArray() when no specific fields are specified. yii\base\ArrayableTrait
getAdditionalProperty() luya\web\jsonld\PlaceTrait
getAdditionalType() luya\web\jsonld\ThingTrait
getAddress() luya\web\jsonld\PlaceTrait
getAggregateRating() luya\web\jsonld\PlaceTrait
getAlternateName() luya\web\jsonld\ThingTrait
getAmenityFeature() luya\web\jsonld\PlaceTrait
getBranchCode() luya\web\jsonld\PlaceTrait
getContainedInPlace() luya\web\jsonld\PlaceTrait
getContainsPlace() luya\web\jsonld\PlaceTrait
getDescription() luya\web\jsonld\ThingTrait
getDisambiguatingDescription() luya\web\jsonld\ThingTrait
getEvent() luya\web\jsonld\PlaceTrait
getFaxNumber() luya\web\jsonld\PlaceTrait
getGeo() luya\web\jsonld\PlaceTrait
getGeospatiallyContains() luya\web\jsonld\PlaceTrait
getGeospatiallyCoveredBy() luya\web\jsonld\PlaceTrait
getGeospatiallyCovers() luya\web\jsonld\PlaceTrait
getGeospatiallyCrosses() luya\web\jsonld\PlaceTrait
getGeospatiallyDisjoint() luya\web\jsonld\PlaceTrait
getGeospatiallyEquals() luya\web\jsonld\PlaceTrait
getGeospatiallyIntersects() luya\web\jsonld\PlaceTrait
getGeospatiallyOverlaps() luya\web\jsonld\PlaceTrait
getGeospatiallyTouches() luya\web\jsonld\PlaceTrait
getGeospatiallyWithin() luya\web\jsonld\PlaceTrait
getGlobalLocationNumber() luya\web\jsonld\PlaceTrait
getHasMap() luya\web\jsonld\PlaceTrait
getIdentifier() luya\web\jsonld\ThingTrait
getImage() luya\web\jsonld\ThingTrait
getIsicV4() luya\web\jsonld\PlaceTrait
getLogo() luya\web\jsonld\PlaceTrait
getMainEntityOfPage() luya\web\jsonld\ThingTrait
getMaximumAttendeeCapacity() luya\web\jsonld\PlaceTrait
getName() luya\web\jsonld\ThingTrait
getOffers() Get Offer luya\web\jsonld\ThingTrait
getOpeningHoursSpecification() luya\web\jsonld\PlaceTrait
getPhoto() luya\web\jsonld\PlaceTrait
getReview() luya\web\jsonld\PlaceTrait
getSameAs() luya\web\jsonld\ThingTrait
getSpecialOpeningHoursSpecification() luya\web\jsonld\PlaceTrait
getSubjectOf() luya\web\jsonld\ThingTrait
getTelephone() luya\web\jsonld\PlaceTrait
getUrl() luya\web\jsonld\ThingTrait
hasMethod() Returns a value indicating whether a method is defined. yii\base\BaseObject
hasProperty() Returns a value indicating whether a property is defined. yii\base\BaseObject
init() Initializes the object. yii\base\BaseObject
isAccessibleForFree() luya\web\jsonld\PlaceTrait
isPublicAccess() luya\web\jsonld\PlaceTrait
isSmokingAllowed() luya\web\jsonld\PlaceTrait
resolveGetterMethods() Find all getter methods. luya\web\jsonld\BaseThing
setAdditionalProperty() A property-value pair representing an additional characteristics of the entitity, e.g. a product feature or another characteristic for which there is no matching property in schema.org. luya\web\jsonld\PlaceTrait
setAdditionalType() An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. luya\web\jsonld\ThingTrait
setAddress() Physical address of the item. luya\web\jsonld\PlaceTrait
setAggregateRating() The overall rating, based on a collection of reviews or ratings, of the item. luya\web\jsonld\PlaceTrait
setAlternateName() An alias for the item luya\web\jsonld\ThingTrait
setAmenityFeature() An amenity feature (e.g. a characteristic or service) of the Accommodation. luya\web\jsonld\PlaceTrait
setBranchCode() A short textual code (also called "store code") that uniquely identifies a place of business. luya\web\jsonld\PlaceTrait
setContainedInPlace() The basic containment relation between a place and one that contains it. luya\web\jsonld\PlaceTrait
setContainsPlace() The basic containment relation between a place and another that it contains. luya\web\jsonld\PlaceTrait
setDescription() A description of the item. luya\web\jsonld\ThingTrait
setDisambiguatingDescription() A sub property of description. A short description of the item used to disambiguate from other, similar items. luya\web\jsonld\ThingTrait
setEvent() Upcoming or past event associated with this place, organization, or action. luya\web\jsonld\PlaceTrait
setFaxNumber() The fax number. luya\web\jsonld\PlaceTrait
setGeo() The geo coordinates of the place. luya\web\jsonld\PlaceTrait
setGeospatiallyContains() Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in DE-9IM. luya\web\jsonld\PlaceTrait
setGeospatiallyCoveredBy() Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in DE-9IM. luya\web\jsonld\PlaceTrait
setGeospatiallyCovers() Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in DE-9IM. luya\web\jsonld\PlaceTrait
setGeospatiallyCrosses() Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in DE-9IM. luya\web\jsonld\PlaceTrait
setGeospatiallyDisjoint() Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: they have no point in common. They form a set of disconnected geometries." (a symmetric relationship, as defined in DE-9IM) luya\web\jsonld\PlaceTrait
setGeospatiallyEquals() Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in DE-9IM. "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship) luya\web\jsonld\PlaceTrait
setGeospatiallyIntersects() Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in DE-9IM. luya\web\jsonld\PlaceTrait
setGeospatiallyOverlaps() Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in DE-9IM. luya\web\jsonld\PlaceTrait
setGeospatiallyTouches() Represents spatial relations in which two geometries (or the places they represent) touch: they have at least one boundary point in common, but no interior points." (a symmetric relationship, as defined in DE-9IM ) luya\web\jsonld\PlaceTrait
setGeospatiallyWithin() Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in DE-9IM. luya\web\jsonld\PlaceTrait
setGlobalLocationNumber() The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. luya\web\jsonld\PlaceTrait
setHasMap() A URL to a map of the place. luya\web\jsonld\PlaceTrait
setIdentifier() The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See background notes for more details. luya\web\jsonld\ThingTrait
setImage() An image of the item. luya\web\jsonld\ThingTrait
setIsAccessibleForFree() A flag to signal that the item, event, or place is accessible for free. luya\web\jsonld\PlaceTrait
setIsicV4() The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. luya\web\jsonld\PlaceTrait
setLogo() An associated logo. luya\web\jsonld\PlaceTrait
setMainEntityOfPage() Indicates a page (or other CreativeWork) for which this thing is the main entity being described. luya\web\jsonld\ThingTrait
setMaximumAttendeeCapacity() The total number of individuals that may attend an event or venue. luya\web\jsonld\PlaceTrait
setName() The name of the item. luya\web\jsonld\ThingTrait
setOffers() Set Offer luya\web\jsonld\ThingTrait
setOpeningHoursSpecification() The opening hours of a certain place. luya\web\jsonld\PlaceTrait
setPhoto() A photograph of this place. Supersedes photos. luya\web\jsonld\PlaceTrait
setPublicAccess() A flag to signal that the Place is open to public visitors. luya\web\jsonld\PlaceTrait
setReview() A review of the item. Supersedes reviews. luya\web\jsonld\PlaceTrait
setSameAs() URL of a reference Web page that unambiguously indicates the item's identity. luya\web\jsonld\ThingTrait
setSmokingAllowed() Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room. luya\web\jsonld\PlaceTrait
setSpecialOpeningHoursSpecification() The special opening hours of a certain place. luya\web\jsonld\PlaceTrait
setSubjectOf() A CreativeWork or Event about this Thing. luya\web\jsonld\ThingTrait
setTelephone() The telephone number. luya\web\jsonld\PlaceTrait
setUrl() URL of the item. luya\web\jsonld\ThingTrait
toArray() Converts the model into an array. yii\base\ArrayableTrait
typeDefintion() Contains the jsonLd definton @type value if not null or false. luya\web\jsonld\Place

Protected Methods

Hide inherited methods

Method Description Defined By
extractFieldsFor() Extract nested fields from a fields collection for a given root field Nested fields are separated with dots (.). e.g: "item.id" The previous example would extract "id". yii\base\ArrayableTrait
extractRootFields() Extracts the root field names from nested fields. yii\base\ArrayableTrait
resolveFields() Determines which fields can be returned by toArray(). yii\base\ArrayableTrait

Method Details

Hide inherited methods

__call() public method

Defined in: yii\base\BaseObject::__call()

Calls the named method which is not a class method.

Do not call this method directly as it is a PHP magic method that will be implicitly called when an unknown method is being invoked.

public mixed __call ( $name, $params )
$name string

The method name

$params array

Method parameters

return mixed

The method return value

throws yii\base\UnknownMethodException

when calling unknown method

                public function __call($name, $params)
{
    throw new UnknownMethodException('Calling unknown method: ' . get_class($this) . "::$name()");
}

            
__construct() public method

Defined in: yii\base\BaseObject::__construct()

Constructor.

The default implementation does two things:

  • Initializes the object with the given configuration $config.
  • Call init().

If this method is overridden in a child class, it is recommended that

  • the last parameter of the constructor is a configuration array, like $config here.
  • call the parent implementation at the end of the constructor.
public void __construct ( $config = [] )
$config array

Name-value pairs that will be used to initialize the object properties

                public function __construct($config = [])
{
    if (!empty($config)) {
        Yii::configure($this, $config);
    }
    $this->init();
}

            
__get() public method

Defined in: yii\base\BaseObject::__get()

Returns the value of an object property.

Do not call this method directly as it is a PHP magic method that will be implicitly called when executing $value = $object->property;.

See also __set().

public mixed __get ( $name )
$name string

The property name

return mixed

The property value

throws yii\base\UnknownPropertyException

if the property is not defined

throws yii\base\InvalidCallException

if the property is write-only

                public function __get($name)
{
    $getter = 'get' . $name;
    if (method_exists($this, $getter)) {
        return $this->$getter();
    } elseif (method_exists($this, 'set' . $name)) {
        throw new InvalidCallException('Getting write-only property: ' . get_class($this) . '::' . $name);
    }
    throw new UnknownPropertyException('Getting unknown property: ' . get_class($this) . '::' . $name);
}

            
__isset() public method

Defined in: yii\base\BaseObject::__isset()

Checks if a property is set, i.e. defined and not null.

Do not call this method directly as it is a PHP magic method that will be implicitly called when executing isset($object->property).

Note that if the property is not defined, false will be returned.

See also https://www.php.net/manual/en/function.isset.php.

public boolean __isset ( $name )
$name string

The property name or the event name

return boolean

Whether the named property is set (not null).

                public function __isset($name)
{
    $getter = 'get' . $name;
    if (method_exists($this, $getter)) {
        return $this->$getter() !== null;
    }
    return false;
}

            
__set() public method

Defined in: yii\base\BaseObject::__set()

Sets value of an object property.

Do not call this method directly as it is a PHP magic method that will be implicitly called when executing $object->property = $value;.

See also __get().

public void __set ( $name, $value )
$name string

The property name or the event name

$value mixed

The property value

throws yii\base\UnknownPropertyException

if the property is not defined

throws yii\base\InvalidCallException

if the property is read-only

                public function __set($name, $value)
{
    $setter = 'set' . $name;
    if (method_exists($this, $setter)) {
        $this->$setter($value);
    } elseif (method_exists($this, 'get' . $name)) {
        throw new InvalidCallException('Setting read-only property: ' . get_class($this) . '::' . $name);
    } else {
        throw new UnknownPropertyException('Setting unknown property: ' . get_class($this) . '::' . $name);
    }
}

            
__unset() public method

Defined in: yii\base\BaseObject::__unset()

Sets an object property to null.

Do not call this method directly as it is a PHP magic method that will be implicitly called when executing unset($object->property).

Note that if the property is not defined, this method will do nothing. If the property is read-only, it will throw an exception.

See also https://www.php.net/manual/en/function.unset.php.

public void __unset ( $name )
$name string

The property name

throws yii\base\InvalidCallException

if the property is read only.

                public function __unset($name)
{
    $setter = 'set' . $name;
    if (method_exists($this, $setter)) {
        $this->$setter(null);
    } elseif (method_exists($this, 'get' . $name)) {
        throw new InvalidCallException('Unsetting read-only property: ' . get_class($this) . '::' . $name);
    }
}

            
canGetProperty() public method

Defined in: yii\base\BaseObject::canGetProperty()

Returns a value indicating whether a property can be read.

A property is readable if:

  • the class has a getter method associated with the specified name (in this case, property name is case-insensitive);
  • the class has a member variable with the specified name (when $checkVars is true);

See also canSetProperty().

public boolean canGetProperty ( $name, $checkVars true )
$name string

The property name

$checkVars boolean

Whether to treat member variables as properties

return boolean

Whether the property can be read

                public function canGetProperty($name, $checkVars = true)
{
    return method_exists($this, 'get' . $name) || $checkVars && property_exists($this, $name);
}

            
canSetProperty() public method

Defined in: yii\base\BaseObject::canSetProperty()

Returns a value indicating whether a property can be set.

A property is writable if:

  • the class has a setter method associated with the specified name (in this case, property name is case-insensitive);
  • the class has a member variable with the specified name (when $checkVars is true);

See also canGetProperty().

public boolean canSetProperty ( $name, $checkVars true )
$name string

The property name

$checkVars boolean

Whether to treat member variables as properties

return boolean

Whether the property can be written

                public function canSetProperty($name, $checkVars = true)
{
    return method_exists($this, 'set' . $name) || $checkVars && property_exists($this, $name);
}

            
className() public static method
Deprecated since 2.0.14. On PHP >=5.5, use ::class instead.

Defined in: yii\base\BaseObject::className()

Returns the fully qualified name of this class.

public static string className ( )
return string

The fully qualified name of this class.

                public static function className()
{
    return get_called_class();
}

            
extraFields() public method

Defined in: yii\base\ArrayableTrait::extraFields()

Returns the list of fields that can be expanded further and returned by toArray().

This method is similar to fields() except that the list of fields returned by this method are not returned by default by toArray(). Only when field names to be expanded are explicitly specified when calling toArray(), will their values be exported.

The default implementation returns an empty array.

You may override this method to return a list of expandable fields based on some context information (e.g. the current application user).

See also:

public array extraFields ( )
return array

The list of expandable field names or field definitions. Please refer to fields() on the format of the return value.

                public function extraFields()
{
    return [];
}

            
extractFieldsFor() protected method (available since version 2.0.14)

Defined in: yii\base\ArrayableTrait::extractFieldsFor()

Extract nested fields from a fields collection for a given root field Nested fields are separated with dots (.). e.g: "item.id" The previous example would extract "id".

protected array extractFieldsFor ( array $fields, $rootField )
$fields array

The fields requested for extraction

$rootField string

The root field for which we want to extract the nested fields

return array

Nested fields extracted for the given field

                protected function extractFieldsFor(array $fields, $rootField)
{
    $result = [];
    foreach ($fields as $field) {
        if (0 === strpos($field, "{$rootField}.")) {
            $result[] = preg_replace('/^' . preg_quote($rootField, '/') . '\./i', '', $field);
        }
    }
    return array_unique($result);
}

            
extractRootFields() protected method (available since version 2.0.14)

Defined in: yii\base\ArrayableTrait::extractRootFields()

Extracts the root field names from nested fields.

Nested fields are separated with dots (.). e.g: "item.id" The previous example would extract "item".

protected array extractRootFields ( array $fields )
$fields array

The fields requested for extraction

return array

Root fields extracted from the given nested fields

                protected function extractRootFields(array $fields)
{
    $result = [];
    foreach ($fields as $field) {
        $result[] = current(explode('.', $field, 2));
    }
    if (in_array('*', $result, true)) {
        $result = [];
    }
    return array_unique($result);
}

            
fields() public method

Defined in: yii\base\ArrayableTrait::fields()

Returns the list of fields that should be returned by default by toArray() when no specific fields are specified.

A field is a named element in the returned array by toArray().

This method should return an array of field names or field definitions. If the former, the field name will be treated as an object property name whose value will be used as the field value. If the latter, the array key should be the field name while the array value should be the corresponding field definition which can be either an object property name or a PHP callable returning the corresponding field value. The signature of the callable should be:

function ($model, $field) {
    // return field value
}

For example, the following code declares four fields:

  • email: the field name is the same as the property name email;
  • firstName and lastName: the field names are firstName and lastName, and their values are obtained from the first_name and last_name properties;
  • fullName: the field name is fullName. Its value is obtained by concatenating first_name and last_name.
return [
    'email',
    'firstName' => 'first_name',
    'lastName' => 'last_name',
    'fullName' => function () {
        return $this->first_name . ' ' . $this->last_name;
    },
];

In this method, you may also want to return different lists of fields based on some context information. For example, depending on the privilege of the current application user, you may return different sets of visible fields or filter out some fields.

The default implementation of this method returns the public object member variables indexed by themselves.

See also toArray().

public array fields ( )
return array

The list of field names or field definitions.

                public function fields()
{
    $fields = array_keys(Yii::getObjectVars($this));
    return array_combine($fields, $fields);
}

            
getAdditionalProperty() public method
public luya\web\jsonld\PropertyValue getAdditionalProperty ( )

                public function getAdditionalProperty()
{
    return $this->_additionalProperty;
}

            
getAdditionalType() public method
public string getAdditionalType ( )

                public function getAdditionalType()
{
    return $this->_additionalType;
}

            
getAddress() public method
public luya\web\jsonld\PostalAddress|string getAddress ( )

                public function getAddress()
{
    return $this->_address;
}

            
getAggregateRating() public method
public luya\web\jsonld\AggregateRating getAggregateRating ( )

                public function getAggregateRating()
{
    return $this->_aggregateRating;
}

            
getAlternateName() public method
public string getAlternateName ( )

                public function getAlternateName()
{
    return $this->_alternateName;
}

            
getAmenityFeature() public method
public \luya\web\jsonld\LocationFeatureSpecification getAmenityFeature ( )

                public function getAmenityFeature()
{
    return $this->_amenityFeature;
}

            
getBranchCode() public method
public string getBranchCode ( )

                public function getBranchCode()
{
    return $this->_branchCode;
}

            
getContainedInPlace() public method
public luya\web\jsonld\Place getContainedInPlace ( )

                public function getContainedInPlace()
{
    return $this->_containedInPlace;
}

            
getContainsPlace() public method
public luya\web\jsonld\Place getContainsPlace ( )

                public function getContainsPlace()
{
    return $this->_containsPlace;
}

            
getDescription() public method
public string getDescription ( )

                public function getDescription()
{
    return $this->_description;
}

            
getDisambiguatingDescription() public method
public string getDisambiguatingDescription ( )

                public function getDisambiguatingDescription()
{
    return $this->_disambiguatingDescription;
}

            
getEvent() public method
public luya\web\jsonld\Event getEvent ( )

                public function getEvent()
{
    return $this->_event;
}

            
getFaxNumber() public method
public string getFaxNumber ( )

                public function getFaxNumber()
{
    return $this->_faxNumber;
}

            
getGeo() public method
public luya\web\jsonld\GeoCoordinates getGeo ( )

                public function getGeo()
{
    return $this->_geo;
}

            
getGeospatiallyContains() public method
public mixed getGeospatiallyContains ( )

                public function getGeospatiallyContains()
{
    return $this->_geospatiallyContains;
}

            
getGeospatiallyCoveredBy() public method
public mixed getGeospatiallyCoveredBy ( )

                public function getGeospatiallyCoveredBy()
{
    return $this->_geospatiallyCoveredBy;
}

            
getGeospatiallyCovers() public method
public \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place getGeospatiallyCovers ( )

                public function getGeospatiallyCovers()
{
    return $this->_geospatiallyCovers;
}

            
getGeospatiallyCrosses() public method
public \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place getGeospatiallyCrosses ( )

                public function getGeospatiallyCrosses()
{
    return $this->_geospatiallyCrosses;
}

            
getGeospatiallyDisjoint() public method
public \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place getGeospatiallyDisjoint ( )

                public function getGeospatiallyDisjoint()
{
    return $this->_geospatiallyDisjoint;
}

            
getGeospatiallyEquals() public method
public \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place getGeospatiallyEquals ( )

                public function getGeospatiallyEquals()
{
    return $this->_geospatiallyEquals;
}

            
getGeospatiallyIntersects() public method
public \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place getGeospatiallyIntersects ( )

                public function getGeospatiallyIntersects()
{
    return $this->_geospatiallyIntersects;
}

            
getGeospatiallyOverlaps() public method
public \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place getGeospatiallyOverlaps ( )

                public function getGeospatiallyOverlaps()
{
    return $this->_geospatiallyOverlaps;
}

            
getGeospatiallyTouches() public method
public \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place getGeospatiallyTouches ( )

                public function getGeospatiallyTouches()
{
    return $this->_geospatiallyTouches;
}

            
getGeospatiallyWithin() public method
public \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place getGeospatiallyWithin ( )

                public function getGeospatiallyWithin()
{
    return $this->_geospatiallyWithin;
}

            
getGlobalLocationNumber() public method
public string getGlobalLocationNumber ( )

                public function getGlobalLocationNumber()
{
    return $this->_globalLocationNumber;
}

            
getHasMap() public method
public \luya\web\jsonld\Map getHasMap ( )

                public function getHasMap()
{
    return $this->_hasMap;
}

            
getIdentifier() public method
public luya\web\jsonld\PropertyValue getIdentifier ( )

                public function getIdentifier()
{
    return $this->_identifier;
}

            
getImage() public method
public luya\web\jsonld\ImageObject getImage ( )

                public function getImage()
{
    return $this->_image;
}

            
getIsicV4() public method
public string getIsicV4 ( )

                public function getIsicV4()
{
    return $this->_isicV4;
}

            
getLogo() public method
public luya\web\jsonld\ImageObject getLogo ( )

getMainEntityOfPage() public method
public luya\web\jsonld\CreativeWork getMainEntityOfPage ( )

                public function getMainEntityOfPage()
{
    return $this->_mainEntityOfPage;
}

            
getMaximumAttendeeCapacity() public method
public integer getMaximumAttendeeCapacity ( )

                public function getMaximumAttendeeCapacity()
{
    return $this->_maximumAttendeeCapacity;
}

            
getName() public method
public string getName ( )

                public function getName()
{
    return $this->_name;
}

            
getOffers() public method (available since version 1.2.2)
public luya\web\jsonld\Offer getOffers ( )

                public function getOffers()
{
    return $this->_offers;
}

            
getOpeningHoursSpecification() public method
public \luya\web\jsonld\OpeningHoursSpecification getOpeningHoursSpecification ( )

                public function getOpeningHoursSpecification()
{
    return $this->_openingHoursSpecification;
}

            
getPhoto() public method
public luya\web\jsonld\ImageObject|\luya\web\jsonld\Photograph getPhoto ( )

                public function getPhoto()
{
    return $this->_photo;
}

            
getReview() public method
public luya\web\jsonld\Review getReview ( )

                public function getReview()
{
    return $this->_review;
}

            
getSameAs() public method
public string getSameAs ( )

                public function getSameAs()
{
    return $this->_sameAs;
}

            
getSpecialOpeningHoursSpecification() public method
public \luya\web\jsonld\OpeningHoursSpecification getSpecialOpeningHoursSpecification ( )

                public function getSpecialOpeningHoursSpecification()
{
    return $this->_specialOpeningHoursSpecification;
}

            
getSubjectOf() public method
public luya\web\jsonld\CreativeWork|luya\web\jsonld\Event getSubjectOf ( )

                public function getSubjectOf()
{
    return $this->_subjectOf;
}

            
getTelephone() public method
public string getTelephone ( )

                public function getTelephone()
{
    return $this->_telephone;
}

            
getUrl() public method
public string getUrl ( )

                public function getUrl()
{
    return $this->_url;
}

            
hasMethod() public method

Defined in: yii\base\BaseObject::hasMethod()

Returns a value indicating whether a method is defined.

The default implementation is a call to php function method_exists(). You may override this method when you implemented the php magic method __call().

public boolean hasMethod ( $name )
$name string

The method name

return boolean

Whether the method is defined

                public function hasMethod($name)
{
    return method_exists($this, $name);
}

            
hasProperty() public method

Defined in: yii\base\BaseObject::hasProperty()

Returns a value indicating whether a property is defined.

A property is defined if:

  • the class has a getter or setter method associated with the specified name (in this case, property name is case-insensitive);
  • the class has a member variable with the specified name (when $checkVars is true);

See also:

public boolean hasProperty ( $name, $checkVars true )
$name string

The property name

$checkVars boolean

Whether to treat member variables as properties

return boolean

Whether the property is defined

                public function hasProperty($name, $checkVars = true)
{
    return $this->canGetProperty($name, $checkVars) || $this->canSetProperty($name, false);
}

            
init() public method

Defined in: yii\base\BaseObject::init()

Initializes the object.

This method is invoked at the end of the constructor after the object is initialized with the given configuration.

public void init ( )

                public function init()
{
}

            
isAccessibleForFree() public method
public boolean isAccessibleForFree ( )

                public function isAccessibleForFree()
{
    return $this->_isAccessibleForFree;
}

            
isPublicAccess() public method
public boolean isPublicAccess ( )

                public function isPublicAccess()
{
    return $this->_publicAccess;
}

            
isSmokingAllowed() public method
public boolean isSmokingAllowed ( )

                public function isSmokingAllowed()
{
    return $this->_smokingAllowed;
}

            
resolveFields() protected method

Defined in: yii\base\ArrayableTrait::resolveFields()

Determines which fields can be returned by toArray().

This method will first extract the root fields from the given fields. Then it will check the requested root fields against those declared in fields() and extraFields() to determine which fields can be returned.

protected array resolveFields ( array $fields, array $expand )
$fields array

The fields being requested for exporting

$expand array

The additional fields being requested for exporting

return array

The list of fields to be exported. The array keys are the field names, and the array values are the corresponding object property names or PHP callables returning the field values.

                protected function resolveFields(array $fields, array $expand)
{
    $fields = $this->extractRootFields($fields);
    $expand = $this->extractRootFields($expand);
    $result = [];
    foreach ($this->fields() as $field => $definition) {
        if (is_int($field)) {
            $field = $definition;
        }
        if (empty($fields) || in_array($field, $fields, true)) {
            $result[$field] = $definition;
        }
    }
    if (empty($expand)) {
        return $result;
    }
    foreach ($this->extraFields() as $field => $definition) {
        if (is_int($field)) {
            $field = $definition;
        }
        if (in_array($field, $expand, true)) {
            $result[$field] = $definition;
        }
    }
    return $result;
}

            
resolveGetterMethods() public method

Defined in: luya\web\jsonld\BaseThing::resolveGetterMethods()

Find all getter methods.

public array resolveGetterMethods ( )

                public function resolveGetterMethods()
{
    $resolved = [];
    $methods = get_class_methods($this);
    
    if (!$methods) {
        return [];
    }
    
    foreach ($methods as $method) {
        if (StringHelper::startsWith($method, 'get', true)) {
            $resolved[] = lcfirst(StringHelper::replaceFirst('get', '', $method));
        }
    }
    
    asort($resolved);
    
    return $resolved;
}

            
setAdditionalProperty() public method

Defined in: luya\web\jsonld\PlaceTrait::setAdditionalProperty()

A property-value pair representing an additional characteristics of the entitity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.

Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. http://schema.org/width, http://schema.org/color, http://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic

public static setAdditionalProperty ( luya\web\jsonld\PropertyValue $additionalProperty )
$additionalProperty luya\web\jsonld\PropertyValue

                public function setAdditionalProperty(PropertyValue $additionalProperty)
{
    $this->_additionalProperty = $additionalProperty;
    return $this;
}

            
setAdditionalType() public method

Defined in: luya\web\jsonld\ThingTrait::setAdditionalType()

An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax.

This is a relationship between something and a class that the thing is in.

public static setAdditionalType ( luya\web\jsonld\UrlValue $additionalType )
$additionalType string

                public function setAdditionalType(UrlValue $additionalType)
{
    $this->_additionalType = $additionalType->getValue();
    return $this;
}

            
setAddress() public method

Defined in: luya\web\jsonld\PlaceTrait::setAddress()

Physical address of the item.

public static setAddress ( luya\web\jsonld\PostalAddress $address )
$address luya\web\jsonld\PostalAddress|string

                public function setAddress(PostalAddress $address)
{
    $this->_address = $address;
    return $this;
}

            
setAggregateRating() public method

Defined in: luya\web\jsonld\PlaceTrait::setAggregateRating()

The overall rating, based on a collection of reviews or ratings, of the item.

public static setAggregateRating ( luya\web\jsonld\AggregateRating $aggregateRating )
$aggregateRating luya\web\jsonld\AggregateRating

                public function setAggregateRating(AggregateRating $aggregateRating)
{
    $this->_aggregateRating = $aggregateRating;
    return $this;
}

            
setAlternateName() public method

Defined in: luya\web\jsonld\ThingTrait::setAlternateName()

An alias for the item

public static setAlternateName ( $alternateName )
$alternateName string

                public function setAlternateName($alternateName)
{
    $this->_alternateName = $alternateName;
    return $this;
}

            
setAmenityFeature() public method

Defined in: luya\web\jsonld\PlaceTrait::setAmenityFeature()

An amenity feature (e.g. a characteristic or service) of the Accommodation.

This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.

public static setAmenityFeature ( $amenityFeature )
$amenityFeature \luya\web\jsonld\LocationFeatureSpecification

                public function setAmenityFeature($amenityFeature)
{
    $this->_amenityFeature = $amenityFeature;
    return $this;
}

            
setBranchCode() public method

Defined in: luya\web\jsonld\PlaceTrait::setBranchCode()

A short textual code (also called "store code") that uniquely identifies a place of business.

The code is typically assigned by the parentOrganization and used in structured URLs. For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.

public static setBranchCode ( $branchCode )
$branchCode string

                public function setBranchCode($branchCode)
{
    $this->_branchCode = $branchCode;
    return $this;
}

            
setContainedInPlace() public method

Defined in: luya\web\jsonld\PlaceTrait::setContainedInPlace()

The basic containment relation between a place and one that contains it.

Supersedes containedIn. Inverse property: containsPlace.

public static setContainedInPlace ( luya\web\jsonld\Place $containedInPlace )
$containedInPlace luya\web\jsonld\Place

                public function setContainedInPlace(Place $containedInPlace)
{
    $this->_containedInPlace = $containedInPlace;
    return $this;
}

            
setContainsPlace() public method

Defined in: luya\web\jsonld\PlaceTrait::setContainsPlace()

The basic containment relation between a place and another that it contains.

Inverse property: containedInPlace.

public static setContainsPlace ( luya\web\jsonld\Place $containsPlace )
$containsPlace luya\web\jsonld\Place

                public function setContainsPlace(Place $containsPlace)
{
    $this->_containsPlace = $containsPlace;
    return $this;
}

            
setDescription() public method

Defined in: luya\web\jsonld\ThingTrait::setDescription()

A description of the item.

public static setDescription ( $description )
$description string

                public function setDescription($description)
{
    $this->_description = $description;
    return $this;
}

            
setDisambiguatingDescription() public method

Defined in: luya\web\jsonld\ThingTrait::setDisambiguatingDescription()

A sub property of description. A short description of the item used to disambiguate from other, similar items.

Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.

public static setDisambiguatingDescription ( $disambiguatingDescription )
$disambiguatingDescription string

                public function setDisambiguatingDescription($disambiguatingDescription)
{
    $this->_disambiguatingDescription = $disambiguatingDescription;
    return $this;
}

            
setEvent() public method

Defined in: luya\web\jsonld\PlaceTrait::setEvent()

Upcoming or past event associated with this place, organization, or action.

Supersedes events.

public static setEvent ( luya\web\jsonld\Event $event )
$event luya\web\jsonld\Event

                public function setEvent(Event $event)
{
    $this->_event[] = $event;
    return $this;
}

            
setFaxNumber() public method

Defined in: luya\web\jsonld\PlaceTrait::setFaxNumber()

The fax number.

public static setFaxNumber ( $faxNumber )
$faxNumber string

                public function setFaxNumber($faxNumber)
{
    $this->_faxNumber = $faxNumber;
    return $this;
}

            
setGeo() public method

Defined in: luya\web\jsonld\PlaceTrait::setGeo()

The geo coordinates of the place.

public static setGeo ( luya\web\jsonld\GeoCoordinates $geo )
$geo luya\web\jsonld\GeoCoordinates

                public function setGeo(GeoCoordinates $geo)
{
    $this->_geo = $geo;
    return $this;
}

            
setGeospatiallyContains() public method

Defined in: luya\web\jsonld\PlaceTrait::setGeospatiallyContains()

Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in DE-9IM.

public static setGeospatiallyContains ( $geospatiallyContains )
$geospatiallyContains mixed

                public function setGeospatiallyContains($geospatiallyContains)
{
    $this->_geospatiallyContains = $geospatiallyContains;
    return $this;
}

            
setGeospatiallyCoveredBy() public method

Defined in: luya\web\jsonld\PlaceTrait::setGeospatiallyCoveredBy()

Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in DE-9IM.

public static setGeospatiallyCoveredBy ( $geospatiallyCoveredBy )
$geospatiallyCoveredBy mixed

                public function setGeospatiallyCoveredBy($geospatiallyCoveredBy)
{
    $this->_geospatiallyCoveredBy = $geospatiallyCoveredBy;
    return $this;
}

            
setGeospatiallyCovers() public method

Defined in: luya\web\jsonld\PlaceTrait::setGeospatiallyCovers()

Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in DE-9IM.

public static setGeospatiallyCovers ( $geospatiallyCovers )
$geospatiallyCovers \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place

                public function setGeospatiallyCovers($geospatiallyCovers)
{
    $this->_geospatiallyCovers = $geospatiallyCovers;
    return $this;
}

            
setGeospatiallyCrosses() public method

Defined in: luya\web\jsonld\PlaceTrait::setGeospatiallyCrosses()

Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in DE-9IM.

public static setGeospatiallyCrosses ( $geospatiallyCrosses )
$geospatiallyCrosses \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place

                public function setGeospatiallyCrosses($geospatiallyCrosses)
{
    $this->_geospatiallyCrosses = $geospatiallyCrosses;
    return $this;
}

            
setGeospatiallyDisjoint() public method

Defined in: luya\web\jsonld\PlaceTrait::setGeospatiallyDisjoint()

Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: they have no point in common. They form a set of disconnected geometries." (a symmetric relationship, as defined in DE-9IM)

public static setGeospatiallyDisjoint ( $geospatiallyDisjoint )
$geospatiallyDisjoint \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place

                public function setGeospatiallyDisjoint($geospatiallyDisjoint)
{
    $this->_geospatiallyDisjoint = $geospatiallyDisjoint;
    return $this;
}

            
setGeospatiallyEquals() public method

Defined in: luya\web\jsonld\PlaceTrait::setGeospatiallyEquals()

Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in DE-9IM. "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship)

public static setGeospatiallyEquals ( $geospatiallyEquals )
$geospatiallyEquals \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place

                public function setGeospatiallyEquals($geospatiallyEquals)
{
    $this->_geospatiallyEquals = $geospatiallyEquals;
    return $this;
}

            
setGeospatiallyIntersects() public method

Defined in: luya\web\jsonld\PlaceTrait::setGeospatiallyIntersects()

Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in DE-9IM.

public static setGeospatiallyIntersects ( $geospatiallyIntersects )
$geospatiallyIntersects mixed

                public function setGeospatiallyIntersects($geospatiallyIntersects)
{
    $this->_geospatiallyIntersects = $geospatiallyIntersects;
    return $this;
}

            
setGeospatiallyOverlaps() public method

Defined in: luya\web\jsonld\PlaceTrait::setGeospatiallyOverlaps()

Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in DE-9IM.

public static setGeospatiallyOverlaps ( $geospatiallyOverlaps )
$geospatiallyOverlaps \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place

                public function setGeospatiallyOverlaps($geospatiallyOverlaps)
{
    $this->_geospatiallyOverlaps = $geospatiallyOverlaps;
    return $this;
}

            
setGeospatiallyTouches() public method

Defined in: luya\web\jsonld\PlaceTrait::setGeospatiallyTouches()

Represents spatial relations in which two geometries (or the places they represent) touch: they have at least one boundary point in common, but no interior points." (a symmetric relationship, as defined in DE-9IM )

public static setGeospatiallyTouches ( $geospatiallyTouches )
$geospatiallyTouches \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place

                public function setGeospatiallyTouches($geospatiallyTouches)
{
    $this->_geospatiallyTouches = $geospatiallyTouches;
    return $this;
}

            
setGeospatiallyWithin() public method

Defined in: luya\web\jsonld\PlaceTrait::setGeospatiallyWithin()

Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in DE-9IM.

public static setGeospatiallyWithin ( $geospatiallyWithin )
$geospatiallyWithin \luya\web\jsonld\GeospatialGeometry|luya\web\jsonld\Place

                public function setGeospatiallyWithin($geospatiallyWithin)
{
    $this->_geospatiallyWithin = $geospatiallyWithin;
    return $this;
}

            
setGlobalLocationNumber() public method

Defined in: luya\web\jsonld\PlaceTrait::setGlobalLocationNumber()

The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.

public static setGlobalLocationNumber ( $globalLocationNumber )
$globalLocationNumber string

                public function setGlobalLocationNumber($globalLocationNumber)
{
    $this->_globalLocationNumber = $globalLocationNumber;
    return $this;
}

            
setHasMap() public method

Defined in: luya\web\jsonld\PlaceTrait::setHasMap()

A URL to a map of the place.

Supersedes map, maps.

public static setHasMap ( $hasMap )
$hasMap \luya\web\jsonld\Map

                public function setHasMap($hasMap)
{
    $this->_hasMap = $hasMap;
    return $this;
}

            
setIdentifier() public method

Defined in: luya\web\jsonld\ThingTrait::setIdentifier()

The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See background notes for more details.

public static setIdentifier ( luya\web\jsonld\PropertyValue $identifier )
$identifier luya\web\jsonld\PropertyValue

                public function setIdentifier(PropertyValue $identifier)
{
    $this->_identifier = $identifier;
    return $this;
}

            
setImage() public method

Defined in: luya\web\jsonld\ThingTrait::setImage()

An image of the item.

This can be a URL or a fully described ImageObject.

public static setImage ( luya\web\jsonld\ImageObject $image )
$image luya\web\jsonld\ImageObject

                public function setImage(ImageObject $image)
{
    $this->_image = $image;
    return $this;
}

            
setIsAccessibleForFree() public method

Defined in: luya\web\jsonld\PlaceTrait::setIsAccessibleForFree()

A flag to signal that the item, event, or place is accessible for free.

Supersedes free.

public static setIsAccessibleForFree ( $isAccessibleForFree )
$isAccessibleForFree boolean

                public function setIsAccessibleForFree($isAccessibleForFree)
{
    $this->_isAccessibleForFree = $isAccessibleForFree;
    return $this;
}

            
setIsicV4() public method

Defined in: luya\web\jsonld\PlaceTrait::setIsicV4()

The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.

public static setIsicV4 ( $isicV4 )
$isicV4 string

                public function setIsicV4($isicV4)
{
    $this->_isicV4 = $isicV4;
    return $this;
}

            
setLogo() public method

Defined in: luya\web\jsonld\PlaceTrait::setLogo()

An associated logo.

public static setLogo ( luya\web\jsonld\ImageObject $logo )
$logo luya\web\jsonld\ImageObject

setMainEntityOfPage() public method

Defined in: luya\web\jsonld\ThingTrait::setMainEntityOfPage()

Indicates a page (or other CreativeWork) for which this thing is the main entity being described.

Inverse property: mainEntity.

public static setMainEntityOfPage ( luya\web\jsonld\CreativeWork $mainEntityOfPage )
$mainEntityOfPage luya\web\jsonld\CreativeWork

                public function setMainEntityOfPage(CreativeWork $mainEntityOfPage)
{
    $this->_mainEntityOfPage = $mainEntityOfPage;
    return $this;
}

            
setMaximumAttendeeCapacity() public method

Defined in: luya\web\jsonld\PlaceTrait::setMaximumAttendeeCapacity()

The total number of individuals that may attend an event or venue.

public static setMaximumAttendeeCapacity ( $maximumAttendeeCapacity )
$maximumAttendeeCapacity integer

                public function setMaximumAttendeeCapacity($maximumAttendeeCapacity)
{
    $this->_maximumAttendeeCapacity = $maximumAttendeeCapacity;
    return $this;
}

            
setName() public method

Defined in: luya\web\jsonld\ThingTrait::setName()

The name of the item.

public static setName ( $name )
$name string

                public function setName($name)
{
    $this->_name = $name;
    return $this;
}

            
setOffers() public method
public static setOffers ( luya\web\jsonld\Offer $offers )
$offers

                public function setOffers(Offer $offers)
{
    $this->_offers = $offers;
    return $this;
}

            
setOpeningHoursSpecification() public method

Defined in: luya\web\jsonld\PlaceTrait::setOpeningHoursSpecification()

The opening hours of a certain place.

public static setOpeningHoursSpecification ( $openingHoursSpecification )
$openingHoursSpecification \luya\web\jsonld\OpeningHoursSpecification

                public function setOpeningHoursSpecification($openingHoursSpecification)
{
    $this->_openingHoursSpecification = $openingHoursSpecification;
    return $this;
}

            
setPhoto() public method

Defined in: luya\web\jsonld\PlaceTrait::setPhoto()

A photograph of this place. Supersedes photos.

public static setPhoto ( $photo )
$photo luya\web\jsonld\ImageObject|\luya\web\jsonld\Photograph

                public function setPhoto($photo)
{
    $this->_photo = $photo;
    return $this;
}

            
setPublicAccess() public method

Defined in: luya\web\jsonld\PlaceTrait::setPublicAccess()

A flag to signal that the Place is open to public visitors.

If this property is omitted there is no assumed default boolean value

public static setPublicAccess ( $publicAccess )
$publicAccess boolean

                public function setPublicAccess($publicAccess)
{
    $this->_publicAccess = $publicAccess;
    return $this;
}

            
setReview() public method

Defined in: luya\web\jsonld\PlaceTrait::setReview()

A review of the item. Supersedes reviews.

public static setReview ( luya\web\jsonld\Review $review )
$review luya\web\jsonld\Review

                public function setReview(Review $review)
{
    $this->_review[] = $review;
    return $this;
}

            
setSameAs() public method

Defined in: luya\web\jsonld\ThingTrait::setSameAs()

URL of a reference Web page that unambiguously indicates the item's identity.

E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website.

public static setSameAs ( luya\web\jsonld\UrlValue $sameAs )
$sameAs luya\web\jsonld\UrlValue

                public function setSameAs(UrlValue $sameAs)
{
    $this->_sameAs = $sameAs->getValue();
    return $this;
}

            
setSmokingAllowed() public method

Defined in: luya\web\jsonld\PlaceTrait::setSmokingAllowed()

Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.

public static setSmokingAllowed ( $smokingAllowed )
$smokingAllowed boolean

                public function setSmokingAllowed($smokingAllowed)
{
    $this->_smokingAllowed = $smokingAllowed;
    return $this;
}

            
setSpecialOpeningHoursSpecification() public method

Defined in: luya\web\jsonld\PlaceTrait::setSpecialOpeningHoursSpecification()

The special opening hours of a certain place.

Use this to explicitly override general opening hours brought in scope by openingHoursSpecification or openingHours.

public static setSpecialOpeningHoursSpecification ( $specialOpeningHoursSpecification )
$specialOpeningHoursSpecification \luya\web\jsonld\OpeningHoursSpecification

                public function setSpecialOpeningHoursSpecification($specialOpeningHoursSpecification)
{
    $this->_specialOpeningHoursSpecification = $specialOpeningHoursSpecification;
    return $this;
}

            
setSubjectOf() public method

Defined in: luya\web\jsonld\ThingTrait::setSubjectOf()

A CreativeWork or Event about this Thing.

Inverse property: about.

public static setSubjectOf ( $subjectOf )
$subjectOf luya\web\jsonld\CreativeWork|luya\web\jsonld\Event

                public function setSubjectOf($subjectOf)
{
    $this->_subjectOf = $subjectOf;
    return $this;
}

            
setTelephone() public method

Defined in: luya\web\jsonld\PlaceTrait::setTelephone()

The telephone number.

public static setTelephone ( $telephone )
$telephone string

                public function setTelephone($telephone)
{
    $this->_telephone = $telephone;
    return $this;
}

            
setUrl() public method

Defined in: luya\web\jsonld\ThingTrait::setUrl()

URL of the item.

public static setUrl ( luya\web\jsonld\UrlValue $url )
$url luya\web\jsonld\UrlValue

                public function setUrl(UrlValue $url)
{
    $this->_url = $url->getValue();
    return $this;
}

            
toArray() public method

Defined in: yii\base\ArrayableTrait::toArray()

Converts the model into an array.

This method will first identify which fields to be included in the resulting array by calling resolveFields(). It will then turn the model into an array with these fields. If $recursive is true, any embedded objects will also be converted into arrays. When embedded objects are yii\base\Arrayable, their respective nested fields will be extracted and passed to toArray().

If the model implements the yii\web\Linkable interface, the resulting array will also have a _link element which refers to a list of links as specified by the interface.

public array toArray ( array $fields = [], array $expand = [], $recursive true )
$fields array

The fields being requested. If empty or if it contains '*', all fields as specified by fields() will be returned. Fields can be nested, separated with dots (.). e.g.: item.field.sub-field $recursive must be true for nested fields to be extracted. If $recursive is false, only the root fields will be extracted.

$expand array

The additional fields being requested for exporting. Only fields declared in extraFields() will be considered. Expand can also be nested, separated with dots (.). e.g.: item.expand1.expand2 $recursive must be true for nested expands to be extracted. If $recursive is false, only the root expands will be extracted.

$recursive boolean

Whether to recursively return array representation of embedded objects.

return array

The array representation of the object

                public function toArray(array $fields = [], array $expand = [], $recursive = true)
{
    $data = [];
    foreach ($this->resolveFields($fields, $expand) as $field => $definition) {
        $attribute = is_string($definition) ? $this->$definition : $definition($this, $field);
        if ($recursive) {
            $nestedFields = $this->extractFieldsFor($fields, $field);
            $nestedExpand = $this->extractFieldsFor($expand, $field);
            if ($attribute instanceof Arrayable) {
                $attribute = $attribute->toArray($nestedFields, $nestedExpand);
            } elseif ($attribute instanceof \JsonSerializable) {
                $attribute = $attribute->jsonSerialize();
            } elseif (is_array($attribute)) {
                $attribute = array_map(
                    function ($item) use ($nestedFields, $nestedExpand) {
                        if ($item instanceof Arrayable) {
                            return $item->toArray($nestedFields, $nestedExpand);
                        } elseif ($item instanceof \JsonSerializable) {
                            return $item->jsonSerialize();
                        }
                        return $item;
                    },
                    $attribute
                );
            }
        }
        $data[$field] = $attribute;
    }
    if ($this instanceof Linkable) {
        $data['_links'] = Link::serialize($this->getLinks());
    }
    return $recursive ? ArrayHelper::toArray($data) : $data;
}

            
typeDefintion() public method

Contains the jsonLd definton @type value if not null or false.

public boolean|string typeDefintion ( )
return boolean|string

Generates the @type field.

                public function typeDefintion()
{
    return 'Place';
}