Öffentliche Methoden | |
| db () | |
| pageid () | |
| getObjectId () | |
| setObjectId ($objectid) | |
| getRootObjectId () | |
| folderid () | |
| execute ($code) | |
| delOutput () | |
| output ($text) | |
| getOutput () | |
Öffentliche Attribute | |
| $output = '' | |
| $objectid = 0 | |
| $page | |
Definiert in Zeile 48 der Datei Api.class.php.
| Api::db | ( | ) |
Definiert in Zeile 54 der Datei Api.class.php.
Benutzt db_connection().
00055 { 00056 return db_connection(); 00057 }
| Api::delOutput | ( | ) |
Definiert in Zeile 105 der Datei Api.class.php.
Benutzt output().
00106 { 00107 $this->output = ''; 00108 }
| Api::execute | ( | $ | code | ) |
Definiert in Zeile 88 der Datei Api.class.php.
Benutzt getOutput() und output().
00089 { 00090 global $conf_tmpdir; 00091 $code = "<?php\n".$code."\n?>"; 00092 00093 $tmp = $conf_tmpdir.'/'.md5(microtime()).'.tmp'; 00094 $f = fopen( $tmp,'w' ); 00095 fwrite( $f,$code ); 00096 fclose( $f ); 00097 00098 require( $tmp ); // Ausfuehren des temporaeren PHP-Codes 00099 00100 unlink( $tmp ); 00101 $inhalt = Api::getOutput(); 00102 $this->output( $inhalt ); 00103 }
| Api::folderid | ( | ) |
Definiert in Zeile 81 der Datei Api.class.php.
Benutzt $SESS.
00082 { 00083 global $SESS; 00084 return $SESS['folderid']; 00085 }
| Api::getObjectId | ( | ) |
| Api::getOutput | ( | ) |
Definiert in Zeile 116 der Datei Api.class.php.
Benutzt output().
Wird benutzt von execute().
00117 { 00118 return $this->output; 00119 }
| Api::getRootObjectId | ( | ) |
Definiert in Zeile 76 der Datei Api.class.php.
00077 { 00078 return Folder::getRootObjectId(); 00079 }
| Api::output | ( | $ | text | ) |
Definiert in Zeile 110 der Datei Api.class.php.
Wird benutzt von delOutput(), execute() und getOutput().
00111 { 00112 $this->output .= $text; 00113 }
| Api::pageid | ( | ) |
Definiert in Zeile 59 der Datei Api.class.php.
Benutzt $SESS.
00060 { 00061 echo 'WARNING: pageid() deprecated!<br>'; 00062 global $SESS; 00063 return $SESS['objectid']; 00064 }
| Api::setObjectId | ( | $ | objectid | ) |
Definiert in Zeile 71 der Datei Api.class.php.
Benutzt $objectid.
00072 { 00073 $this->objectid = $objectid; 00074 }
| Api::$objectid = 0 |
| Api::$output = '' |
Definiert in Zeile 50 der Datei Api.class.php.
| Api::$page |
Definiert in Zeile 52 der Datei Api.class.php.
1.5.8