Results 21 to 22 of 22
-
26th Nov 2009, 07:10 PM #21Respected DeveloperWebsite's:
PlatinumW.org NexusDDL.com HD-United.org CheckLinks.org FLVD.orgReally nice one Litewarez, I just don't like your indentation style lol, otherwise your code is super. Anyway, I have a question how does the getter and setter magic method work?
Current projects:
Megaupload Premium Multifetch Script | FF Plugin: Tinypic and Imagevenue Image Remoter
Projects in hiatus:
IPB Linkchecker Bot | VB Linkchecker Bot
-
28th Nov 2009, 07:39 PM #22OPMemberWebsite's:
litewarez.net litewarez.com triniwarez.comThe Getter and Setter magic method basically lets you add stuff into the class without needing to create a function and predefined variables
so for instance
PHP Code:<?php
class Dman{
function __get($var){
echo $var;
}
}
$Dman = new Dman;
//no if i do this
$Dman->I_Love_Litewarez; // this would echo I_Love_Litewarez
//What happens is because the variable "var $I_Lovae_Litewarez" is not there it will send the variable name to __get() and try let the function create some data for that
?>
It basically allows you to set data like $Dman->someVariableKey = "Some VariableValue";Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Advanced Bash Loops Tutorial
By Albert.Nawaro in forum Tutorials and GuidesReplies: 0Last Post: 9th Feb 2012, 10:56 AM -
[AMS] xCleaner - Cleans your System & Registry ;)
By l0calh0st in forum Web Development AreaReplies: 1Last Post: 24th Jul 2010, 05:10 PM -
Tutorial [Creating a PHP Framework] {advanced} (PART 3)
By litewarez in forum Tutorials and GuidesReplies: 1Last Post: 4th Feb 2010, 02:12 AM -
Tutorial [Creating a PHP Framework] {advanced} (PART 2)
By litewarez in forum Tutorials and GuidesReplies: 2Last Post: 3rd Feb 2010, 05:37 AM
themaCreator - create posts from...
Version 3.48 released. Open older version (or...