GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Midgard Components Framework 3rd generation
Homepage: http://www.midgard-project.org
Clone URL: git://github.com/bergie/midcom.git
Isset method for magic getters
bergie (author)
Tue Jul 08 00:59:26 -0700 2008
commit  c5611bbbb695237eeba4a22734f7d25270c18a3d
tree    1dd427cf6e4a800885b8d673322ce1b1c56cf4a5
parent  870edd511d9b09b9878aef309c30080dc74f8072
...
264
265
266
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
268
269
270
...
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
0
@@ -264,6 +264,22 @@ class midcom_helper_datamanager_type_baseclass implements midcom_helper_datamana
0
                 return $this->convert_to_raw();
0
         }
0
     }
0
+
0
+ /**
0
+ * Magic isset for the contents of the field in a given format
0
+ */
0
+ public function __isset($key)
0
+ {
0
+ switch ($key)
0
+ {
0
+ case 'as_html':
0
+ case 'as_csv':
0
+ case 'as_raw':
0
+ return true;
0
+ default:
0
+ return false;
0
+ }
0
+ }
0
 }
0
 
0
 ?>
0
\ No newline at end of file

Comments

    No one has commented yet.