Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

Php (fr) Class

Quiz yourself by thinking what should be in each of the black spaces below before clicking on it to display the answer.
        Help!  

Question
Answer
[Class] Qu'est-ce qu'une class ?   Une classe est une collection de variables et de fonctions qui concernent ces variables.  
🗑
[Class] Que permet de faire l'opérateur new ?   Les classes sont un type de variable. Pour créer une variable du type désiré, vous devez utiliser l'opérateur new.  
🗑
[Class] Qu'est-ce que le constructeur ?   Le constructeur est la fonction qui est appelee automatiquement par la classe lorsque vous créez une nouvelle instance d'une classe. La fonction constructeur a le même nom que la classe dans les vs inférieure a php5. Dans php5 c est __construct().  
🗑
[Class] Dans une classe a quoi est egale la variable $this ?   Dans les fonctions d'une classe, la variable $this est égale à l'objet de la classe. Vous pouvez utilisez la forme "$this->quelquechose" pour accéder aux fonctions ou aux variables de l'objet courant.  
🗑
[Class] Definise une class caddie avec une fonction qui rajoute des articles.   <?php class caddie{ private $article ; //Eléments de notre panier function add_item ($pos, $item){ $this->articles[$pos] = $item; }?>  
🗑
[Class] Comment creer les classes "extended" ou "derived" ?   Cela se fait avec le mot clef "extends".  
🗑
[Class] Que se passe t'il si on cree une classe extension d'une autre classe?   Les classes "extended" ou "derived" héritent de toutes les variables et de toutes les fonctions de la classe père plus toutes les définitions que vous rajoutez à cette classe.  
🗑
[Class] Cette fonction verifi si une classe est defnie. Si elle est definie on peut la creer ($x = new class) ?   bool class_exists ( string class_name [, bool autoload] ) ~<?php ~// Check the class exists before trying to use it ~if (class_exists('MyClass')) { ~ $myclass = new MyClass(): ~} ~?>  
🗑
[Class] This function Returns an array of class methods' names.   array get_class_methods ( mixed class_name )  
🗑
[Class] This function Returns an array of default properties of the class.   array get_class_vars ( string class_name )  
🗑
[Class] This function returns the name of the class of which the object obj is an instance. Returns FALSE if obj is not an object.   string get_class ( [object obj] )  
🗑
[Class] This function Retrieves the parent class name for object or class.   string get_parent_class ( [mixed obj] )  
🗑
[Class] This function returns TRUE if the method given by method_name has been defined for the given object, FALSE otherwise.   bool method_exists ( object object, string method_name ).  
🗑
[Class] This function checks if the given property exists in the specified class (and if it was declared as public).   bool property_exists ( mixed class, string property ). As opposed with isset(), property_exists() returns TRUE even if the property has the value NULL  
🗑


   

Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
 
To hide a column, click on the column name.
 
To hide the entire table, click on the "Hide All" button.
 
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
 
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.

 
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how
Created by: dcrypto
Popular Computers sets