PHP Classes

File: movies.data.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   My Personal Collection   movies.data.php   Download  
File: movies.data.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: My Personal Collection
Manage a collection of movies stored in PHP array
Author: By
Last change:
Date: 9 days ago
Size: 4,413 bytes
 

Contents

Class file image Download
<?php
/**
 * @author Pierre-Henry Soria <[email protected]>
 * @copyright (c) 2015, Pierre-Henry Soria. All Rights Reserved.
 * @license MIT License <http://www.opensource.org/licenses/mit-license.php>
 * @link http://github.com/pH-7/
 */

/** I took some good & famous movies for the test.
    There are stored in a PHP array before being used in Actor and Movie classes
**/

return array
(
   
1 => array
    (
       
'title' => 'The Shawshank Redemption',
       
'release' => '02/17/1995',
       
'runtime' => 142,
       
'actors' => array
        (
           
1 => array
            (
               
'name' => 'William Sadler',
               
'dob' => '04/13/1950',
               
'character' => 'Undecided but not only...'
           
),
           
2 => array
            (
               
'name' => 'Tim Robbins',
               
'dob' => '10/16/1958',
               
'character' => 'Cool Guy'
           
),
           
3 => array
            (
               
'name' => 'Bob Gunton',
               
'dob' => '11/15/1945',
               
'character' => 'Suborn'
           
),
           
4 => array
            (
               
'name' => 'William Sadler',
               
'dob' => '04/13/1950',
               
'character' => 'Undecided but not only...'
           
),
           
5 => array
            (
               
'name' => 'Morgan Freeman',
               
'dob' => '06/01/1937',
               
'character' => 'Always right...'
           
),
           
6 => array
            (
               
'name' => 'Bob Gunton',
               
'dob' => '11/15/1945',
               
'character' => 'Suborn'
           
)
        )
    ),
   
2 => array
    (
       
'title' => 'The Dark Knight',
       
'release' => '07/18/2008',
       
'runtime' => 152,
       
'actors' => array
        (
           
1 => array
            (
               
'name' => 'Christian Bale',
               
'dob' => '01/30/1974',
               
'character' => 'The King'
           
),
           
2 => array
            (
               
'name' => 'Heath Ledger',
               
'dob' => '04/04/1989',
               
'character' => 'Suspicious'
           
),
           
3 => array
            (
               
'name' => 'Aaron Eckhart',
               
'dob' => '03/12/1968',
               
'character' => 'Charmer'
           
),
           
4 => array
            (
               
'name' => 'Michael Caine',
               
'dob' => '03/14/1933',
               
'character' => 'The thinker...'
           
),
           
5 => array
            (
               
'name' => 'Maggie Gyllenhaal',
               
'dob' => '11/16/1977',
               
'character' => 'The Bella...'
           
),
           
6 => array
            (
               
'name' => 'Monique Gabriela Curnen',
               
'dob' => '09/07/1970',
               
'character' => 'The Fighter'
           
)
        )
    ),
   
3 => array
    (
       
'title' => 'The Godfather',
       
'release' => '03/15/1972',
       
'runtime' => 175,
       
'actors' => array
        (
           
1 => array
            (
               
'name' => 'Marlon Brando',
               
'dob' => '04/03/1924',
               
'character' => 'Want to be always right...'
           
),
           
2 => array
            (
               
'name' => 'Al Pacino',
               
'dob' => '04/25/1940',
               
'character' => 'The Italian one'
           
),
           
3 => array
            (
               
'name' => 'James Caan',
               
'dob' => '03/26/1940',
               
'character' => 'The situation man'
           
)
        )
    ),
   
4 => array
    (
       
'title' => 'Inception',
       
'release' => '07/16/2010',
       
'runtime' => 148,
       
'actors' => array
        (
           
1 => array
            (
               
'name' => 'Leonardo DiCaprio',
               
'dob' => '11/11/1974',
               
'character' => 'The disturbed man'
           
),
           
2 => array
            (
               
'name' => 'Joseph Gordon-Levitt',
               
'dob' => '02/17/1981',
               
'character' => 'The wise'
           
),
           
3 => array
            (
               
'name' => 'Ellen Page',
               
'dob' => '02/21/1987',
               
'character' => 'Careful and cleaver'
           
)
        )
    )
);