Skip to content

Name class

duck7000 edited this page Apr 7, 2024 · 37 revisions

List of all methods, with descriptions and what data they return

name()

  • This method gets person name.
  • Returns string

photo()

  • This method gets person image:
  • small (height 98px, default)
  • medium (height 931px)
  • large (maximum available)
  • @parameter $size small, medium, large
  • Returns string URL
  • Note if url from small or medium results in 404 or 401 (this will be checked) the full image url is returned!

birthname()

  • This method gets person birth name
  • Returns string

nickname()

  • This method gets person nickname
  • Returns string

akaName()

born()

  • This method gets person birth date and birth location
  • Returns array(
  • day: int,
  • month: string (month name),
  • mon: int (month number),
  • place: string (birth location)

died()

  • This method gets person death date, death location, death cause and death status
  • Returns array(
  • day: int,
  • month: string (month name),
  • mon: int (month number),
  • place: string (birth location),
  • cause: string,
  • status: string (ALIVE,DEAD or PRESUMED_DEAD)

profession()

  • This method gets person professions
  • Returns array() of professions

rank()

  • This method gets the current popularity rank, changedirection and difference with the previous rank of a person.
  • Returns: array(currentRank: int, changeDirection: enum (string?), difference: int)

height()

  • This method gets person height, metric (in meters) and imperial (in feet and inches)
  • Returns array([imperial]: string, [metric]: string)

spouse()

  • This method gets all spouses from person bio page
  • Returns array of array(
  • imdb: string,
  • name: string,
  • from: array(day: int , month: string month name , mon: int , year: int),
  • to: array(day: int , month: string month name , mon: int , year: int),
  • dateText: string, (this is fromeDate and toDate as plaintext as displayed at imdb)
  • comment: string,
  • children: int,
  • current: boolean) (this indicates if a spouse is the current one or not)

children()

  • This method gets all children from person bio page
  • Returns array of array (imdb: string , name: string, relType: string)

parents()

  • This method gets all parents from person bio page
  • Returns array of array (imdb: string , name: string, relType: string)

relatives()

  • This method gets all other relatives from person bio page
  • Returns array of array (imdb: string , name: string, relType: string)

bio()

  • This method gets all biography stories from person bio page
  • Returns array of array (desc: string , author: string)

trivia()

  • This method gets all trivia from person bio page
  • Returns array of strings trivia

quotes()

  • This method gets all quotes from person bio page
  • Returns array of strings quotes

trademark()

  • This method gets all trademarks from person bio page
  • Returns array of strings trademarks

salary()

  • This method gets all salaries from person bio page
  • Returns array of array(
  • imdb: string,
  • name: string,
  • year: int,
  • amount: int,
  • currency: string,
  • comment: array() each index is a string comment
  • )

pubprints()

  • This method gets all printed publications of this person as listed on publicity page
  • Returns array of array(
  • title: string,
  • author: string,
  • publisher: string,
  • isbn: int
  • )

pubmovies()

  • This method gets all film biography of this person as listed on publicity page
  • Returns array of array(
  • title: string,
  • id: string,
  • year: int,
  • seriesTitle: string,
  • seriesSeason: string,
  • seriesEpisodes: string
  • )

pubother()

  • This method gets all other works of this person as listed on the otherworks page
  • Returns array of array(
  • category: string,
  • fromDate: array(day: int, month: int, year:int),
  • toDate: array(day: int, month: int, year:int),
  • text: string
  • )

extSites()

  • This method gets external websites with info of this name, excluding external reviews.
  • Returns: array of array('label': string, 'url': string, 'language': array[]))

award()

  • This method gets all awards for a person
  • Sort is fixed by: PRESTIGIOUS, order: DESC (prestigious first, highest first, just like the imdb awards page)
  • This method uses 2 parameters, $winsOnly and $event:
  @parm $winsOnly Default: false Set to true will only get won awards
  @param $event Default: "" with this you can limit the results to specific events like oscar
      Possible values for $event:
      "ev0000003" (Academy Awards USA) (Oscar)
      "ev0000223" (Primetime Emmy Awards) (Emmy Award)
      "ev0000292" (Golden Globes USA) (Golden Globe)
      "ev0000471" (National Society of Film Critics Awards, USA)
      "ev0000004" (Academy of Science Fiction, Fantasy & Horror Films, USA)
      "ev0000123" (BAFTA Awards)
      "ev0000296" (Satellite Awards)
      "ev0000453" (MTV Movie + TV Awards)
      "ev0000511" (Online Film Critics Society Awards)
      "ev0000786" (Empire Awards, UK)
      "ev0001644" (DVD Exclusive Awards)
      "ev0002704" (Online Film & Television Association)
      "ev0002990" (Awards Circuit Community Awards)
      "ev0003023" (Golden Schmoes Awards)
      "ev0000133" (Critics Choice Awards)
      "ev0000403" (London Critics Circle Film Awards)
      "ev0000530" (People's Choice Awards, USA)
      There are even more..
  • Returns array[festivalName][0..n] of of array(
  • awardYear: The year of the event
  • awardWinner: Bool true or false True if won
  • awardCategory: The category from the award like best actor
  • awardName: Name of the award like Oscar
  • awardTitles array:
    • titleId Id of the credited title
    • titleName Name of the credited title
    • titleNote Any comments added
  • awardNotes: Any notes like Based on the novel
  • awardOutcome: Like Nominee or Winner
  • total array
    • win Total wins (int)
    • nom Total Nominated (int)

creditKnownFor()

  • This method gets all prestigious title credits for this person
  • Returns array of array(
  • title: string,
  • titleId: string,
  • titleYear: int,
  • titleEndYear: int|null,
  • titleCharacters: array(string)
  • )

credit()

  • This method gets all credits for this person
  • Returns array[categoryId] of array(
  • titleId: string,
  • titleName: string,
  • titleType: string,
  • year: int,
  • endYear: int|null,
  • characters: array(string),
  • jobs: array(string)
  • )

checkRedirect()

  • This method is a helper that checks if imdbid is redirected to another id or not.
  • It sometimes happens that imdb redirects an existing id to a new id.
  • If user uses search class this check isn't necessary as the returned results already contain a possible new imdbid
  • @var $this->imdbID The imdbid used to call this class
  • @var $nameImdbId the returned imdbid from Graphql call (in some cases this can be different)
  • @return $nameImdbId (the new redirected imdbId) or false (no redirect)
Clone this wiki locally