History Class Reference

List of all members.

Public Member Functions

 __construct ()


Detailed Description

Class with the history of the three little pigs

Author:
Thiago Henrique Ramos da Mata <thiago.henrique.mata@gmail.com>
1. create the first pig 2. create the second pig 3. create the third pig 4. the first pig build a straw house 5. the second pig build a stick house 6. the third pig build a brick housve 7. create the wolf 8. the wolf blow the house of the first pig 9. the wolf blow the house of the second pig 10. the wolf blow the house of the third pig

Definition at line 25 of file History.class.php.


Constructor & Destructor Documentation

__construct (  ) 

Definition at line 27 of file History.class.php.

References CodeToDiagram::getInstance().

00028     {
00029         if( class_exists( "CodeToDiagram" ) ) 
00030         {
00031             CodeToDiagram::getInstance()->addNote( "Once upon a time" );
00032 
00033             CodeToDiagram::getInstance()->addNote( "Three Little Pigs who lives into a beautiful Wood" );
00034             
00035         }
00036 
00037         $objPig1 = new LittlePig();
00038         $objPig2 = new LittlePig();
00039         $objPig3 = new LittlePig();
00040 
00041         $objPig1->buildHouse('Straw');
00042         $objPig2->buildHouse('Stick');
00043         $objPig3->buildHouse('Brick');
00044 
00045 
00046         if( class_exists( "CodeToDiagram" ) ) 
00047         {
00048             CodeToDiagram::getInstance()->addNote( "One night the big bad wolf," );
00049             }
00050         $objWolf = new Wolf();
00051 
00052         $objWolf->say( "Let me in, Let me in, little pig or I'll huff and I'll puff and I'll blow your house in!" );
00053         $objWolf->blowIt( $objPig1->getHouse() );
00054         $objWolf->blowIt( $objPig2->getHouse() );
00055         $objWolf->blowIt( $objPig3->getHouse() );
00056     }


The documentation for this class was generated from the following file:

Generated on Thu Feb 3 03:55:03 2011 for CodeToDiagram by  doxygen 1.5.9