Vissza...
dk_url:
895
/917
usr_kod
szoveg
http://php.net/manual/en/language.oop5.php PHP 5 is very very flexible in accessing member variables and member functions. These access methods maybe look unusual and unnecessary at first glance; but they are very useful sometimes; specially when you work with SimpleXML classes and objects. I have posted a similar comment in SimpleXML function reference section, but this one is more comprehensive. I use the following class as reference for all examples: You can access member variables in an object using another variable as name: $element; // prints ~!aMemberVar Member Variable~! ?> or use functions: {getVarName()}; // prints ~!aMemberVar Member Variable~! ?> Important Note: You must surround function name with { and } or PHP would think you are calling a member function of object ~!foo~!. you can use a constant or literal as well: {MY_CONSTANT}; // Prints ~!aMemberVar Member Variable~! print $foo->{~~aMemberVar~~}; // Prints ~!aMemberVar Member Variable~! ?> You can use members of other objects as well: {$otherObj->var}; print $foo->{$otherObj->func()}; ?> You can use mathods above to access member functions as well: {~~aMemberFunc~~}(); // Prints ~!Inside `aMemberFunc()`~! print $foo->{$foo->aFuncName}(); // Prints ~!Inside `aMemberFunc()`~! ?>
archiv
future
lokacio
lokacio_regio
lokacio_irsz
callhref
basehref
act_font
act_name
act_time
act_datetime
frame_width
frame_height
callhead
row_menu
col_menu
logojpg
logourl
FLAGS
public
passw
sum_vote
year_vote
month_vote
day_vote
sum_point
year_point
month_point
day_point
first_visit_time
last_visit_time
logtime