trql.radio.class.php

This documentation is provided without any sort of liability.

Filename: trql.radio.class.php Namespace: trql\quitus\radio Class aliases: \trql\vaesoli\Vaesoli as V,\trql\schema\RadioStation as RadioStation,\trql\quitus\Wikipedia as Wikipedia,\trql\schema\organization\MusicGroup as MusicGroup,DOMDocument; use DOMXPath; if ( ! defined( 'VAESOLI_CLASS_VERSION' ) ) require_once( 'trql.vaesoli.cl as s Purpose: TRQL Radio code to create and manage radio stations Author: Pat Y. Boens Company: Lato Sensu Management
Rue du Bois des Mazuis, 47
5070 Vitrival
Belgium
(geonames: )
Vae Soli!:
Creation date: 11-05-21 04:46 Last modification date: 13/05/2021 - 09:28:22 License/Copyrights: Intellectual Property belongs to Pat Y. Boens. You are free to:

Share — copy and redistribute the material in any medium or format
Adapt — remix, transform, and build upon the material for any purpose, even commercially.

Under the following terms:

Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.

TODOs: 1) Implement the RadioSeries class as we have done it on the TRQL Radio web site and for the California Spirit Radioshow. This class must be modified as to make sure we can, if applicable, assign it a radio station.
Class: Radio Description: TRQL Radio code that makes it possible to create radios that are handled either has sub-radios of TRQL Radio or as independent radio stations Inheritance: Mother > Thing > Organization > LocalBusiness > RadioStation > Radio Declaration: class Radio extends RadioStation Properties:
Name Type Description
$actionableFeedbackPolicy CreativeWork|URL 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.
$additionalType string 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. In RDFa syntax, it is better to use the native RDFa syntax - the 'typeof' attribute - for multiple types.
$address PostalAddress Physical address of the item.
$aggregateRating AggregateRating The overall rating, based on a collection of reviews or ratings, of the item.
$alternateName string An alias for the item.
$alumni Person Alumni of an organization. Inverse property: alumniOf.
$areaServed AdministrativeArea|GeoShape|Place|string The geographic area where a service or offered item is provided. Supersedes serviceArea.
$award string An award won by or for this item. Supersedes awards.
$bankAccount BankAccount The BankAccount of the organization
$brand Brand|Organization The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.
$contactPoint ContactPoint A contact point for a person or organization. Supersedes contactPoints.
$correctionsPolicy CreativeWork|URL For an Organization (e.g. NewsMediaOrganization), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.
$currenciesAccepted string The currency accepted. Use standard formats: ISO 4217 currency format e.g. "USD"; Ticker symbol for cryptocurrencies e.g. "BTC"; well known names for Local Exchange Tradings Systems (LETS) and other currency types e.g. "Ithaca HOUR".
$department Organization 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.
$description string A short description of the item.
$disambiguatingDescription string 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.
$dissolutionDate Date The date that this organization was dissolved.
$diversityPolicy CreativeWork|URL 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.
$diversityStaffingReport Article|URL For an Organization (often but not necessarily a NewsMediaOrganization), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.
$duns string The Dun & Bradstreet DUNS number for identifying an organization or business person.
$email string Email address.
$employee Person Someone working for this organization. Supersedes employees.
$ethicsPolicy CreativeWork|URL 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.
$event Event Upcoming or past event associated with this place, organization, or action. Supersedes events.
$faxNumber string The fax number.
$founder Person A person who founded this organization. Supersedes founders.
$foundingDate Date The date that this organization was founded.
$foundingLocation Place The place where the Organization was founded.
$funder Organization|Person A person or organization that supports (sponsors) something through some kind of financial contribution.
$globalLocationNumber string 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.
$hasCredential EducationalOccupationalCredential A credential awarded to the Person or Organization.
$hasOfferCatalog OfferCatalog Indicates an OfferCatalog listing for this Organization, Person, or Service.
$hasPOS Place Points-of-Sales operated by the organization or person.
$hasProductReturnPolicy ProductReturnPolicy Indicates a ProductReturnPolicy that may be applicable.
$identifier string The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. http://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.
$image string URL of an image of the item.
$isicV4 string The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.
$knowsAbout string|Thing|URL Of a Person, and less typically of an Organization, to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or JobPosting descriptions.
$knowsLanguage Language|string Of a Person, and less typically of an Organization, to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the IETF BCP 47 standard.
$legalForm string The acronym of the legal form of the organization.
$legalName string The official name of the organization, e.g. the registered company name.
$leiCode string An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.
$location Place|PostalAddress|string The location of for example where the event is happening, an organization is located, or where an action takes place.
ImageObject|URL An associated logo.
$mainEntityOfPage string Indicates a page (or other CreativeWork, Event) for which this thing is the main entity being described. See background notes for details. Inverse property: $mainEntity.
$makesOffer Offer A pointer to products or services offered by the organization or person. Inverse property: offeredBy.
$member Organization|Person 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.
$memberOf Organization|ProgramMembership An Organization (or ProgramMembership) to which this Person or Organization belongs. Inverse property: member.
$naics string The North American Industry Classification System (NAICS) code for a particular organization or business person.
$name string The name of the item.
$nonprofitStatus NonprofitType nonprofit Status indicates the legal status of a non-profit organization in its primary place of business.
$numberOfEmployees QuantitativeValue The number of employees in an organization e.g. business.
$openingHours string The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'. Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su. Times are specified using 24:00 time. For example, 3pm is specified as 15:00. Here is an example: . If a business is open 7 days a week, then it can be specified as .
$ownershipFundingInfo AboutPage|CreativeWork|string|URL For an Organization (often but not necessarily a NewsMediaOrganization), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the funder is also available and can be used to make basic funder information machine-readable.
$owns OwnershipInfo|Product Products owned by the organization or person.
$parentOrganization Organization The larger organization that this organization is a subOrganization of, if any. Supersedes branchOf. Inverse property: subOrganization.
$paymentAccepted string Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.
$potentialAction Action Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.
$priceRange string The price range of the business, for example $$$.
$publishingPrinciples CreativeWork|URL 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. While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a funder) can be expressed using schema.org terminology.
$sameAs string URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website.
$schemaOrg string Where the official documentation is maintained
$self array Fixed 'class' information.
$subjectOf CreativeWork|Event A CreativeWork or Event about this Thing. Inverse property: $about.
$url string URL of the item.
$wikidataId string Wikidata ID (https://www.wikidata.org/wiki/Wikidata:Main_Page) : Particular physical business or branch of an organization

Methods of Radio

__construct(): Class constructor

Syntax:

__construct( $szHome )

Parameters:
Name Type Description
$szHome string Home of the class. Optional.

Return:

(self): The current instance of the class


__destruct(): Class destructor

Syntax:

__destruct()

Return:

(void): No return


getArtistInfo(): Get info about an artist

Syntax:

getArtistInfo( $szLang )

Parameters:
Name Type Description
$szArtist string Name of the artist (or group)
$szLang string Optional language. 'en' by default. The language merely serves to perform searches on WikiData. Not much attention should be paid to it.

Return:

(array): Returns an associative array of results pertaining to @param.szArtist