Class luya\web\jsonld\Organization

Inheritanceluya\web\jsonld\Organization » luya\web\jsonld\BaseThing » yii\base\BaseObject
Implementsluya\web\jsonld\OrganizationInterface, luya\web\jsonld\ThingInterface, yii\base\Arrayable, yii\base\Configurable
Uses Traitsluya\web\jsonld\OrganizationTrait, luya\web\jsonld\ThingTrait, yii\base\ArrayableTrait
Subclassesluya\web\jsonld\BarOrPub, luya\web\jsonld\CafeOrCoffeeShop, luya\web\jsonld\EntertainmentBusiness, luya\web\jsonld\FoodEstablishment, luya\web\jsonld\LocalBusiness, luya\web\jsonld\NightClub, luya\web\jsonld\Restaurant
Available since version1.0.0

JsonLd - Organization

An organization such as a school, NGO, corporation, club, etc.

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

Public Properties

Hide inherited properties

Property Type Description Defined By
$actionableFeedbackPolicy mixed luya\web\jsonld\OrganizationTrait
$additionalType string luya\web\jsonld\ThingTrait
$address mixed luya\web\jsonld\OrganizationTrait
$aggregateRating mixed luya\web\jsonld\OrganizationTrait
$alternateName string luya\web\jsonld\ThingTrait
$alumni mixed luya\web\jsonld\OrganizationTrait
$areaServed mixed luya\web\jsonld\OrganizationTrait
$award mixed luya\web\jsonld\OrganizationTrait
$brand mixed luya\web\jsonld\OrganizationTrait
$contactPoint mixed luya\web\jsonld\OrganizationTrait
$correctionsPolicy mixed luya\web\jsonld\OrganizationTrait
$department mixed luya\web\jsonld\OrganizationTrait
$description string luya\web\jsonld\ThingTrait
$disambiguatingDescription string luya\web\jsonld\ThingTrait
$dissolutionDate mixed luya\web\jsonld\OrganizationTrait
$diversityPolicy mixed luya\web\jsonld\OrganizationTrait
$duns mixed luya\web\jsonld\OrganizationTrait
$email mixed luya\web\jsonld\OrganizationTrait
$employee mixed luya\web\jsonld\OrganizationTrait
$ethicsPolicy mixed luya\web\jsonld\OrganizationTrait
$event mixed luya\web\jsonld\OrganizationTrait
$faxNumber mixed luya\web\jsonld\OrganizationTrait
$founder mixed luya\web\jsonld\OrganizationTrait
$foundingDate mixed luya\web\jsonld\OrganizationTrait
$foundingLocation mixed luya\web\jsonld\OrganizationTrait
$funder mixed luya\web\jsonld\OrganizationTrait
$globalLocationNumber mixed luya\web\jsonld\OrganizationTrait
$hasOfferCatalog mixed luya\web\jsonld\OrganizationTrait
$hasPOS mixed luya\web\jsonld\OrganizationTrait
$identifier luya\web\jsonld\PropertyValue luya\web\jsonld\ThingTrait
$image luya\web\jsonld\ImageObject luya\web\jsonld\ThingTrait
$isicV4 mixed luya\web\jsonld\OrganizationTrait
$legalName mixed luya\web\jsonld\OrganizationTrait
$leiCode mixed luya\web\jsonld\OrganizationTrait
$location mixed luya\web\jsonld\OrganizationTrait
$mainEntityOfPage luya\web\jsonld\CreativeWork luya\web\jsonld\ThingTrait
$makesOffer mixed luya\web\jsonld\OrganizationTrait
$member mixed luya\web\jsonld\OrganizationTrait
$memberOf mixed luya\web\jsonld\OrganizationTrait
$naics mixed luya\web\jsonld\OrganizationTrait
$name string luya\web\jsonld\ThingTrait
$numberOfEmployees mixed luya\web\jsonld\OrganizationTrait
$offers luya\web\jsonld\Offer luya\web\jsonld\ThingTrait
$owns mixed luya\web\jsonld\OrganizationTrait
$parentOrganization mixed luya\web\jsonld\OrganizationTrait
$publishingPrinciples mixed luya\web\jsonld\OrganizationTrait
$review mixed luya\web\jsonld\OrganizationTrait
$sameAs string luya\web\jsonld\ThingTrait
$seeks mixed luya\web\jsonld\OrganizationTrait
$sponsor mixed luya\web\jsonld\OrganizationTrait
$subOrganization mixed luya\web\jsonld\OrganizationTrait
$subjectOf luya\web\jsonld\CreativeWork|luya\web\jsonld\Event luya\web\jsonld\ThingTrait
$taxID mixed luya\web\jsonld\OrganizationTrait
$telephone mixed luya\web\jsonld\OrganizationTrait
$unnamedSourcesPolicy mixed luya\web\jsonld\OrganizationTrait
$url string luya\web\jsonld\ThingTrait
$vatID mixed luya\web\jsonld\OrganizationTrait

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
getActionableFeedbackPolicy() luya\web\jsonld\OrganizationTrait
getAdditionalType() luya\web\jsonld\ThingTrait
getAddress() luya\web\jsonld\OrganizationTrait
getAggregateRating() luya\web\jsonld\OrganizationTrait
getAlternateName() luya\web\jsonld\ThingTrait
getAlumni() luya\web\jsonld\OrganizationTrait
getAreaServed() luya\web\jsonld\OrganizationTrait
getAward() luya\web\jsonld\OrganizationTrait
getBrand() luya\web\jsonld\OrganizationTrait
getContactPoint() luya\web\jsonld\OrganizationTrait
getCorrectionsPolicy() luya\web\jsonld\OrganizationTrait
getDepartment() luya\web\jsonld\OrganizationTrait
getDescription() luya\web\jsonld\ThingTrait
getDisambiguatingDescription() luya\web\jsonld\ThingTrait
getDissolutionDate() luya\web\jsonld\OrganizationTrait
getDiversityPolicy() luya\web\jsonld\OrganizationTrait
getDuns() luya\web\jsonld\OrganizationTrait
getEmail() luya\web\jsonld\OrganizationTrait
getEmployee() luya\web\jsonld\OrganizationTrait
getEthicsPolicy() luya\web\jsonld\OrganizationTrait
getEvent() luya\web\jsonld\OrganizationTrait
getFaxNumber() luya\web\jsonld\OrganizationTrait
getFounder() luya\web\jsonld\OrganizationTrait
getFoundingDate() luya\web\jsonld\OrganizationTrait
getFoundingLocation() luya\web\jsonld\OrganizationTrait
getFunder() luya\web\jsonld\OrganizationTrait
getGlobalLocationNumber() luya\web\jsonld\OrganizationTrait
getHasOfferCatalog() luya\web\jsonld\OrganizationTrait
getHasPOS() luya\web\jsonld\OrganizationTrait
getIdentifier() luya\web\jsonld\ThingTrait
getImage() luya\web\jsonld\ThingTrait
getIsicV4() luya\web\jsonld\OrganizationTrait
getLegalName() luya\web\jsonld\OrganizationTrait
getLeiCode() luya\web\jsonld\OrganizationTrait
getLocation() luya\web\jsonld\OrganizationTrait
getLogo() luya\web\jsonld\OrganizationTrait
getMainEntityOfPage() luya\web\jsonld\ThingTrait
getMakesOffer() luya\web\jsonld\OrganizationTrait
getMember() luya\web\jsonld\OrganizationTrait
getMemberOf() luya\web\jsonld\OrganizationTrait
getNaics() luya\web\jsonld\OrganizationTrait
getName() luya\web\jsonld\ThingTrait
getNumberOfEmployees() luya\web\jsonld\OrganizationTrait
getOffers() Get Offer luya\web\jsonld\ThingTrait
getOwns() luya\web\jsonld\OrganizationTrait
getParentOrganization() luya\web\jsonld\OrganizationTrait
getPublishingPrinciples() luya\web\jsonld\OrganizationTrait
getReview() luya\web\jsonld\OrganizationTrait
getSameAs() luya\web\jsonld\ThingTrait
getSeeks() luya\web\jsonld\OrganizationTrait
getSponsor() luya\web\jsonld\OrganizationTrait
getSubOrganization() luya\web\jsonld\OrganizationTrait
getSubjectOf() luya\web\jsonld\ThingTrait
getTaxID() luya\web\jsonld\OrganizationTrait
getTelephone() luya\web\jsonld\OrganizationTrait
getUnnamedSourcesPolicy() luya\web\jsonld\OrganizationTrait
getUrl() luya\web\jsonld\ThingTrait
getVatID() luya\web\jsonld\OrganizationTrait
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
resolveGetterMethods() Find all getter methods. luya\web\jsonld\BaseThing
setActionableFeedbackPolicy() For a NewsMediaOrganization or other news-related Organization, a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication. luya\web\jsonld\OrganizationTrait
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\OrganizationTrait
setAggregateRating() The overall rating, based on a collection of reviews or ratings, of the item. luya\web\jsonld\OrganizationTrait
setAlternateName() An alias for the item luya\web\jsonld\ThingTrait
setAlumni() Alumni of an organization. luya\web\jsonld\OrganizationTrait
setAreaServed() The geographic area where a service or offered item is provided. Supersedes serviceArea. luya\web\jsonld\OrganizationTrait
setAward() An award won by or for this item. Supersedes awards. luya\web\jsonld\OrganizationTrait
setBrand() The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. luya\web\jsonld\OrganizationTrait
setContactPoint() A contact point for a person or organization. Supersedes contactPoints. luya\web\jsonld\OrganizationTrait
setCorrectionsPolicy() For an Organization (e.g. NewsMediaOrganization), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors. luya\web\jsonld\OrganizationTrait
setDepartment() A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). luya\web\jsonld\OrganizationTrait
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
setDissolutionDate() The date that this organization was dissolved. luya\web\jsonld\OrganizationTrait
setDiversityPolicy() Statement on diversity policy by an Organization e.g. a NewsMediaOrganization. luya\web\jsonld\OrganizationTrait
setDuns() The Dun & Bradstreet DUNS number for identifying an organization or business person. luya\web\jsonld\OrganizationTrait
setEmail() Email address luya\web\jsonld\OrganizationTrait
setEmployee() Someone working for this organization. luya\web\jsonld\OrganizationTrait
setEthicsPolicy() Statement about ethics policy, e.g. of a NewsMediaOrganization regarding journalistic and publishing practices, or of a Restaurant, a page describing food source policies. In the case of a NewsMediaOrganization, an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization. luya\web\jsonld\OrganizationTrait
setEvent() Upcoming or past event associated with this place, organization, or action. Supersedes events. luya\web\jsonld\OrganizationTrait
setFaxNumber() The fax number. luya\web\jsonld\OrganizationTrait
setFounder() A person who founded this organization. Supersedes founders. luya\web\jsonld\OrganizationTrait
setFoundingDate() The date that this organization was founded. luya\web\jsonld\OrganizationTrait
setFoundingLocation() The place where the Organization was founded. luya\web\jsonld\OrganizationTrait
setFunder() A person or organization that supports (sponsors) something through some kind of financial contribution. luya\web\jsonld\OrganizationTrait
setGlobalLocationNumber() The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. luya\web\jsonld\OrganizationTrait
setHasOfferCatalog() Indicates an OfferCatalog listing for this Organization, Person, or Service. luya\web\jsonld\OrganizationTrait
setHasPOS() Points-of-Sales operated by the organization or person. luya\web\jsonld\OrganizationTrait
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
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\OrganizationTrait
setLegalName() The official name of the organization, e.g. the registered company name. luya\web\jsonld\OrganizationTrait
setLeiCode() An organization identifier that uniquely identifies a legal entity as defined in ISO 17442. luya\web\jsonld\OrganizationTrait
setLocation() The location of for example where the event is happening, an organization is located, or where an action takes place. luya\web\jsonld\OrganizationTrait
setLogo() An associated logo. luya\web\jsonld\OrganizationTrait
setMainEntityOfPage() Indicates a page (or other CreativeWork) for which this thing is the main entity being described. luya\web\jsonld\ThingTrait
setMakesOffer() A pointer to products or services offered by the organization or person. luya\web\jsonld\OrganizationTrait
setMember() A member of an Organization or a ProgramMembership. luya\web\jsonld\OrganizationTrait
setMemberOf() An Organization (or ProgramMembership) to which this Person or Organization belongs. luya\web\jsonld\OrganizationTrait
setNaics() The North American Industry Classification System (NAICS) code for a particular organization or business person. luya\web\jsonld\OrganizationTrait
setName() The name of the item. luya\web\jsonld\ThingTrait
setNumberOfEmployees() The number of employees in an organization e.g. business. luya\web\jsonld\OrganizationTrait
setOffers() Set Offer luya\web\jsonld\ThingTrait
setOwns() Products owned by the organization or person. luya\web\jsonld\OrganizationTrait
setParentOrganization() The larger organization that this organization is a subOrganization of, if any. luya\web\jsonld\OrganizationTrait
setPublishingPrinciples() The publishingPrinciples property indicates (typically via URL) a document describing the editorial principles of an Organization (or individual e.g. a Person writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a CreativeWork (e.g. NewsArticle) the principles are those of the party primarily responsible for the creation of the CreativeWork. luya\web\jsonld\OrganizationTrait
setReview() A review of the item. luya\web\jsonld\OrganizationTrait
setSameAs() URL of a reference Web page that unambiguously indicates the item's identity. luya\web\jsonld\ThingTrait
setSeeks() A pointer to products or services sought by the organization or person (demand). luya\web\jsonld\OrganizationTrait
setSponsor() A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. luya\web\jsonld\OrganizationTrait
setSubOrganization() A relationship between two organizations where the first includes the second, e.g., as a subsidiary. luya\web\jsonld\OrganizationTrait
setSubjectOf() A CreativeWork or Event about this Thing. luya\web\jsonld\ThingTrait
setTaxID() The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain. luya\web\jsonld\OrganizationTrait
setTelephone() The telephone number. luya\web\jsonld\OrganizationTrait
setUnnamedSourcesPolicy() For an Organization (typically a NewsMediaOrganization), a statement about policy on use of unnamed sources and the decision process required. luya\web\jsonld\OrganizationTrait
setUrl() URL of the item. luya\web\jsonld\ThingTrait
setVatID() The Value-added Tax ID of the organization or person. luya\web\jsonld\OrganizationTrait
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\Organization

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);
}

            
getActionableFeedbackPolicy() public method
public mixed getActionableFeedbackPolicy ( )

                public function getActionableFeedbackPolicy()
{
    return $this->_actionableFeedbackPolicy;
}

            
getAdditionalType() public method
public string getAdditionalType ( )

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

            
getAddress() public method
public mixed getAddress ( )

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

            
getAggregateRating() public method
public mixed getAggregateRating ( )

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

            
getAlternateName() public method
public string getAlternateName ( )

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

            
getAlumni() public method
public mixed getAlumni ( )

                public function getAlumni()
{
    return $this->_alumni;
}

            
getAreaServed() public method
public mixed getAreaServed ( )

                public function getAreaServed()
{
    return $this->_areaServed;
}

            
getAward() public method
public mixed getAward ( )

                public function getAward()
{
    return $this->_award;
}

            
getBrand() public method
public mixed getBrand ( )

                public function getBrand()
{
    return $this->_brand;
}

            
getContactPoint() public method
public mixed getContactPoint ( )

                public function getContactPoint()
{
    return $this->_contactPoint;
}

            
getCorrectionsPolicy() public method
public mixed getCorrectionsPolicy ( )

                public function getCorrectionsPolicy()
{
    return $this->_correctionsPolicy;
}

            
getDepartment() public method
public mixed getDepartment ( )

                public function getDepartment()
{
    return $this->_department;
}

            
getDescription() public method
public string getDescription ( )

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

            
getDisambiguatingDescription() public method
public string getDisambiguatingDescription ( )

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

            
getDissolutionDate() public method
public mixed getDissolutionDate ( )

                public function getDissolutionDate()
{
    return $this->_dissolutionDate;
}

            
getDiversityPolicy() public method
public mixed getDiversityPolicy ( )

                public function getDiversityPolicy()
{
    return $this->_diversityPolicy;
}

            
getDuns() public method
public mixed getDuns ( )

                public function getDuns()
{
    return $this->_duns;
}

            
getEmail() public method
public mixed getEmail ( )

                public function getEmail()
{
    return $this->_email;
}

            
getEmployee() public method
public mixed getEmployee ( )

                public function getEmployee()
{
    return $this->_employee;
}

            
getEthicsPolicy() public method
public mixed getEthicsPolicy ( )

                public function getEthicsPolicy()
{
    return $this->_ethicsPolicy;
}

            
getEvent() public method
public mixed getEvent ( )

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

            
getFaxNumber() public method
public mixed getFaxNumber ( )

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

            
getFounder() public method
public mixed getFounder ( )

                public function getFounder()
{
    return $this->_founder;
}

            
getFoundingDate() public method
public mixed getFoundingDate ( )

                public function getFoundingDate()
{
    return $this->_foundingDate;
}

            
getFoundingLocation() public method
public mixed getFoundingLocation ( )

                public function getFoundingLocation()
{
    return $this->_foundingLocation;
}

            
getFunder() public method
public mixed getFunder ( )

                public function getFunder()
{
    return $this->_funder;
}

            
getGlobalLocationNumber() public method
public mixed getGlobalLocationNumber ( )

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

            
getHasOfferCatalog() public method
public mixed getHasOfferCatalog ( )

                public function getHasOfferCatalog()
{
    return $this->_hasOfferCatalog;
}

            
getHasPOS() public method
public mixed getHasPOS ( )

                public function getHasPOS()
{
    return $this->_hasPOS;
}

            
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 mixed getIsicV4 ( )

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

            
getLegalName() public method
public mixed getLegalName ( )

                public function getLegalName()
{
    return $this->_legalName;
}

            
getLeiCode() public method
public mixed getLeiCode ( )

                public function getLeiCode()
{
    return $this->_leiCode;
}

            
getLocation() public method
public mixed getLocation ( )

                public function getLocation()
{
    return $this->_location;
}

            
getLogo() public method
public mixed getLogo ( )

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

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

            
getMakesOffer() public method
public mixed getMakesOffer ( )

                public function getMakesOffer()
{
    return $this->_makesOffer;
}

            
getMember() public method
public mixed getMember ( )

                public function getMember()
{
    return $this->_member;
}

            
getMemberOf() public method
public mixed getMemberOf ( )

                public function getMemberOf()
{
    return $this->_memberOf;
}

            
getNaics() public method
public mixed getNaics ( )

                public function getNaics()
{
    return $this->_naics;
}

            
getName() public method
public string getName ( )

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

            
getNumberOfEmployees() public method
public mixed getNumberOfEmployees ( )

                public function getNumberOfEmployees()
{
    return $this->_numberOfEmployees;
}

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

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

            
getOwns() public method
public mixed getOwns ( )

                public function getOwns()
{
    return $this->_owns;
}

            
getParentOrganization() public method
public mixed getParentOrganization ( )

                public function getParentOrganization()
{
    return $this->_parentOrganization;
}

            
getPublishingPrinciples() public method
public mixed getPublishingPrinciples ( )

                public function getPublishingPrinciples()
{
    return $this->_publishingPrinciples;
}

            
getReview() public method
public mixed getReview ( )

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

            
getSameAs() public method
public string getSameAs ( )

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

            
getSeeks() public method
public mixed getSeeks ( )

                public function getSeeks()
{
    return $this->_seeks;
}

            
getSponsor() public method
public mixed getSponsor ( )

                public function getSponsor()
{
    return $this->_sponsor;
}

            
getSubOrganization() public method
public mixed getSubOrganization ( )

                public function getSubOrganization()
{
    return $this->_subOrganization;
}

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

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

            
getTaxID() public method
public mixed getTaxID ( )

                public function getTaxID()
{
    return $this->_taxID;
}

            
getTelephone() public method
public mixed getTelephone ( )

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

            
getUnnamedSourcesPolicy() public method
public mixed getUnnamedSourcesPolicy ( )

                public function getUnnamedSourcesPolicy()
{
    return $this->_unnamedSourcesPolicy;
}

            
getUrl() public method
public string getUrl ( )

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

            
getVatID() public method
public mixed getVatID ( )

                public function getVatID()
{
    return $this->_vatID;
}

            
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()
{
}

            
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;
}

            
setActionableFeedbackPolicy() public method

Defined in: luya\web\jsonld\OrganizationTrait::setActionableFeedbackPolicy()

For a NewsMediaOrganization or other news-related Organization, a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.

public static setActionableFeedbackPolicy ( $actionableFeedbackPolicy )
$actionableFeedbackPolicy mixed

                public function setActionableFeedbackPolicy($actionableFeedbackPolicy)
{
    $this->_actionableFeedbackPolicy[] = $actionableFeedbackPolicy;
    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\OrganizationTrait::setAddress()

Physical address of the item.

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

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

            
setAggregateRating() public method

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

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

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

                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;
}

            
setAlumni() public method

Defined in: luya\web\jsonld\OrganizationTrait::setAlumni()

Alumni of an organization.

Inverse property: alumniOf.

public static setAlumni ( $alumni )
$alumni mixed

                public function setAlumni($alumni)
{
    $this->_alumni[] = $alumni;
    return $this;
}

            
setAreaServed() public method

Defined in: luya\web\jsonld\OrganizationTrait::setAreaServed()

The geographic area where a service or offered item is provided. Supersedes serviceArea.

public static setAreaServed ( $areaServed )
$areaServed mixed

                public function setAreaServed($areaServed)
{
    $this->_areaServed[] = $areaServed;
    return $this;
}

            
setAward() public method

Defined in: luya\web\jsonld\OrganizationTrait::setAward()

An award won by or for this item. Supersedes awards.

public static setAward ( $award )
$award mixed

                public function setAward($award)
{
    $this->_award[] = $award;
    return $this;
}

            
setBrand() public method

Defined in: luya\web\jsonld\OrganizationTrait::setBrand()

The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.

public static setBrand ( $brand )
$brand mixed

                public function setBrand($brand)
{
    $this->_brand[] = $brand;
    return $this;
}

            
setContactPoint() public method

Defined in: luya\web\jsonld\OrganizationTrait::setContactPoint()

A contact point for a person or organization. Supersedes contactPoints.

public static setContactPoint ( $contactPoint )
$contactPoint mixed

                public function setContactPoint($contactPoint)
{
    $this->_contactPoint[] = $contactPoint;
    return $this;
}

            
setCorrectionsPolicy() public method

Defined in: luya\web\jsonld\OrganizationTrait::setCorrectionsPolicy()

For an Organization (e.g. NewsMediaOrganization), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.

public static setCorrectionsPolicy ( $correctionsPolicy )
$correctionsPolicy mixed

                public function setCorrectionsPolicy($correctionsPolicy)
{
    $this->_correctionsPolicy[] = $correctionsPolicy;
    return $this;
}

            
setDepartment() public method

Defined in: luya\web\jsonld\OrganizationTrait::setDepartment()

A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours).

For example: a store with a pharmacy, or a bakery with a cafe.

public static setDepartment ( $department )
$department mixed

                public function setDepartment($department)
{
    $this->_department[] = $department;
    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;
}

            
setDissolutionDate() public method

Defined in: luya\web\jsonld\OrganizationTrait::setDissolutionDate()

The date that this organization was dissolved.

public static setDissolutionDate ( $dissolutionDate )
$dissolutionDate mixed

                public function setDissolutionDate($dissolutionDate)
{
    $this->_dissolutionDate[] = $dissolutionDate;
    return $this;
}

            
setDiversityPolicy() public method

Defined in: luya\web\jsonld\OrganizationTrait::setDiversityPolicy()

Statement on diversity policy by an Organization e.g. a NewsMediaOrganization.

For a NewsMediaOrganization, a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.

public static setDiversityPolicy ( $diversityPolicy )
$diversityPolicy mixed

                public function setDiversityPolicy($diversityPolicy)
{
    $this->_diversityPolicy[] = $diversityPolicy;
    return $this;
}

            
setDuns() public method

Defined in: luya\web\jsonld\OrganizationTrait::setDuns()

The Dun & Bradstreet DUNS number for identifying an organization or business person.

public static setDuns ( $duns )
$duns mixed

                public function setDuns($duns)
{
    $this->_duns[] = $duns;
    return $this;
}

            
setEmail() public method
public static setEmail ( $email )
$email mixed

                public function setEmail($email)
{
    $this->_email[] = $email;
    return $this;
}

            
setEmployee() public method

Defined in: luya\web\jsonld\OrganizationTrait::setEmployee()

Someone working for this organization.

Supersedes employees.

public static setEmployee ( $employee )
$employee mixed

                public function setEmployee($employee)
{
    $this->_employee[] = $employee;
    return $this;
}

            
setEthicsPolicy() public method

Defined in: luya\web\jsonld\OrganizationTrait::setEthicsPolicy()

Statement about ethics policy, e.g. of a NewsMediaOrganization regarding journalistic and publishing practices, or of a Restaurant, a page describing food source policies. In the case of a NewsMediaOrganization, an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.

public static setEthicsPolicy ( $ethicsPolicy )
$ethicsPolicy mixed

                public function setEthicsPolicy($ethicsPolicy)
{
    $this->_ethicsPolicy[] = $ethicsPolicy;
    return $this;
}

            
setEvent() public method

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

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

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

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

            
setFaxNumber() public method
public static setFaxNumber ( $faxNumber )
$faxNumber mixed

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

            
setFounder() public method

Defined in: luya\web\jsonld\OrganizationTrait::setFounder()

A person who founded this organization. Supersedes founders.

public static setFounder ( $founder )
$founder mixed

                public function setFounder($founder)
{
    $this->_founder[] = $founder;
    return $this;
}

            
setFoundingDate() public method

Defined in: luya\web\jsonld\OrganizationTrait::setFoundingDate()

The date that this organization was founded.

public static setFoundingDate ( $foundingDate )
$foundingDate mixed

                public function setFoundingDate($foundingDate)
{
    $this->_foundingDate[] = $foundingDate;
    return $this;
}

            
setFoundingLocation() public method

Defined in: luya\web\jsonld\OrganizationTrait::setFoundingLocation()

The place where the Organization was founded.

public static setFoundingLocation ( $foundingLocation )
$foundingLocation mixed

                public function setFoundingLocation($foundingLocation)
{
    $this->_foundingLocation[] = $foundingLocation;
    return $this;
}

            
setFunder() public method

Defined in: luya\web\jsonld\OrganizationTrait::setFunder()

A person or organization that supports (sponsors) something through some kind of financial contribution.

public static setFunder ( $funder )
$funder mixed

                public function setFunder($funder)
{
    $this->_funder[] = $funder;
    return $this;
}

            
setGlobalLocationNumber() public method

Defined in: luya\web\jsonld\OrganizationTrait::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 mixed

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

            
setHasOfferCatalog() public method

Defined in: luya\web\jsonld\OrganizationTrait::setHasOfferCatalog()

Indicates an OfferCatalog listing for this Organization, Person, or Service.

public static setHasOfferCatalog ( $hasOfferCatalog )
$hasOfferCatalog mixed

                public function setHasOfferCatalog($hasOfferCatalog)
{
    $this->_hasOfferCatalog[] = $hasOfferCatalog;
    return $this;
}

            
setHasPOS() public method

Defined in: luya\web\jsonld\OrganizationTrait::setHasPOS()

Points-of-Sales operated by the organization or person.

public static setHasPOS ( $hasPOS )
$hasPOS mixed

                public function setHasPOS($hasPOS)
{
    $this->_hasPOS[] = $hasPOS;
    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;
}

            
setIsicV4() public method

Defined in: luya\web\jsonld\OrganizationTrait::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 mixed

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

            
setLegalName() public method

Defined in: luya\web\jsonld\OrganizationTrait::setLegalName()

The official name of the organization, e.g. the registered company name.

public static setLegalName ( $legalName )
$legalName mixed

                public function setLegalName($legalName)
{
    $this->_legalName[] = $legalName;
    return $this;
}

            
setLeiCode() public method

Defined in: luya\web\jsonld\OrganizationTrait::setLeiCode()

An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.

public static setLeiCode ( $leiCode )
$leiCode mixed

                public function setLeiCode($leiCode)
{
    $this->_leiCode[] = $leiCode;
    return $this;
}

            
setLocation() public method

Defined in: luya\web\jsonld\OrganizationTrait::setLocation()

The location of for example where the event is happening, an organization is located, or where an action takes place.

public static setLocation ( $location )
$location mixed

                public function setLocation($location)
{
    $this->_location[] = $location;
    return $this;
}

            
setLogo() public method

Defined in: luya\web\jsonld\OrganizationTrait::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;
}

            
setMakesOffer() public method

Defined in: luya\web\jsonld\OrganizationTrait::setMakesOffer()

A pointer to products or services offered by the organization or person.

Inverse property: offeredBy.

public static setMakesOffer ( $makesOffer )
$makesOffer mixed

                public function setMakesOffer($makesOffer)
{
    $this->_makesOffer[] = $makesOffer;
    return $this;
}

            
setMember() public method

Defined in: luya\web\jsonld\OrganizationTrait::setMember()

A member of an Organization or a ProgramMembership.

Organizations can be members of organizations; ProgramMembership is typically for individuals. Supersedes members, musicGroupMember. Inverse property: memberOf.

public static setMember ( $member )
$member mixed

                public function setMember($member)
{
    $this->_member[] = $member;
    return $this;
}

            
setMemberOf() public method

Defined in: luya\web\jsonld\OrganizationTrait::setMemberOf()

An Organization (or ProgramMembership) to which this Person or Organization belongs.

Inverse property: member.

public static setMemberOf ( $memberOf )
$memberOf mixed

                public function setMemberOf($memberOf)
{
    $this->_memberOf[] = $memberOf;
    return $this;
}

            
setNaics() public method

Defined in: luya\web\jsonld\OrganizationTrait::setNaics()

The North American Industry Classification System (NAICS) code for a particular organization or business person.

public static setNaics ( $naics )
$naics mixed

                public function setNaics($naics)
{
    $this->_naics[] = $naics;
    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;
}

            
setNumberOfEmployees() public method

Defined in: luya\web\jsonld\OrganizationTrait::setNumberOfEmployees()

The number of employees in an organization e.g. business.

public static setNumberOfEmployees ( $numberOfEmployees )
$numberOfEmployees mixed

                public function setNumberOfEmployees($numberOfEmployees)
{
    $this->_numberOfEmployees[] = $numberOfEmployees;
    return $this;
}

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

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

            
setOwns() public method

Defined in: luya\web\jsonld\OrganizationTrait::setOwns()

Products owned by the organization or person.

public static setOwns ( $owns )
$owns mixed

                public function setOwns($owns)
{
    $this->_owns[] = $owns;
    return $this;
}

            
setParentOrganization() public method

Defined in: luya\web\jsonld\OrganizationTrait::setParentOrganization()

The larger organization that this organization is a subOrganization of, if any.

Supersedes branchOf. Inverse property: subOrganization.

public static setParentOrganization ( $parentOrganization )
$parentOrganization mixed

                public function setParentOrganization($parentOrganization)
{
    $this->_parentOrganization[] = $parentOrganization;
    return $this;
}

            
setPublishingPrinciples() public method

Defined in: luya\web\jsonld\OrganizationTrait::setPublishingPrinciples()

The publishingPrinciples property indicates (typically via URL) a document describing the editorial principles of an Organization (or individual e.g. a Person writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a CreativeWork (e.g. NewsArticle) the principles are those of the party primarily responsible for the creation of the CreativeWork.

public static setPublishingPrinciples ( $publishingPrinciples )
$publishingPrinciples mixed

                public function setPublishingPrinciples($publishingPrinciples)
{
    $this->_publishingPrinciples[] = $publishingPrinciples;
    return $this;
}

            
setReview() public method

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

A review of the item.

Supersedes reviews.

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

                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;
}

            
setSeeks() public method

Defined in: luya\web\jsonld\OrganizationTrait::setSeeks()

A pointer to products or services sought by the organization or person (demand).

public static setSeeks ( $seeks )
$seeks mixed

                public function setSeeks($seeks)
{
    $this->_seeks[] = $seeks;
    return $this;
}

            
setSponsor() public method

Defined in: luya\web\jsonld\OrganizationTrait::setSponsor()

A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g.

public static setSponsor ( $sponsor )
$sponsor mixed

                public function setSponsor($sponsor)
{
    $this->_sponsor[] = $sponsor;
    return $this;
}

            
setSubOrganization() public method

Defined in: luya\web\jsonld\OrganizationTrait::setSubOrganization()

A relationship between two organizations where the first includes the second, e.g., as a subsidiary.

See also: the more specific 'department' property. Inverse property: parentOrganization.

public static setSubOrganization ( $subOrganization )
$subOrganization mixed

                public function setSubOrganization($subOrganization)
{
    $this->_subOrganization[] = $subOrganization;
    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;
}

            
setTaxID() public method

Defined in: luya\web\jsonld\OrganizationTrait::setTaxID()

The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.

public static setTaxID ( $taxID )
$taxID mixed

                public function setTaxID($taxID)
{
    $this->_taxID[] = $taxID;
    return $this;
}

            
setTelephone() public method

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

The telephone number.

public static setTelephone ( $telephone )
$telephone mixed

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

            
setUnnamedSourcesPolicy() public method

Defined in: luya\web\jsonld\OrganizationTrait::setUnnamedSourcesPolicy()

For an Organization (typically a NewsMediaOrganization), a statement about policy on use of unnamed sources and the decision process required.

public static setUnnamedSourcesPolicy ( $unnamedSourcesPolicy )
$unnamedSourcesPolicy mixed

                public function setUnnamedSourcesPolicy($unnamedSourcesPolicy)
{
    $this->_unnamedSourcesPolicy[] = $unnamedSourcesPolicy;
    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;
}

            
setVatID() public method

Defined in: luya\web\jsonld\OrganizationTrait::setVatID()

The Value-added Tax ID of the organization or person.

public static setVatID ( $vatID )
$vatID mixed

                public function setVatID($vatID)
{
    $this->_vatID[] = $vatID;
    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 'Organization';
}