Save
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.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
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

Php CLass

Php (fr) Class

QuestionAnswer
[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
Created by: dcrypto
Popular Computers sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards