Changeset 738 for trunk/Application
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- Location:
- trunk/Application
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/FormClasses.php
r736 r738 311 311 'Filter' => '1', 312 312 ), 313 313 'TFinanceInvoiceItemListInvoice' => array( 314 314 'Type' => 'ManyToOne', 315 315 'Table' => 'FinanceInvoiceItem', -
trunk/Application/System.php
r737 r738 83 83 function ShowPage() 84 84 { 85 85 /* @var $Page Page */ 86 86 $ClassName = $this->SearchPage($this->PathItems, $this->Pages); 87 87 if($ClassName != '') … … 118 118 function ShowAction($Id) 119 119 { 120 120 $Output = ''; 121 121 $DbResult = $this->Database->query('SELECT *, `ActionIcon`.`Name` AS `Icon` FROM `Action` '. 122 122 'LEFT JOIN `ActionIcon` ON `ActionIcon`.`Id` = `Action`.`Icon` '. … … 136 136 function RunCommon() 137 137 { 138 138 global $Database, $ScriptTimeStart, $ConfigFileName, $Mail, $Type, 139 139 $DatabaseRevision, $Config; 140 140 … … 195 195 function RunCommandLine() 196 196 { 197 198 199 200 201 197 global $argv; 198 199 $this->RunCommon(); 200 if(count($argv) > 1) 201 { 202 202 if(array_key_exists($argv[1], $this->CommandLine)) 203 203 { 204 205 206 207 208 209 210 204 $Command = $this->CommandLine[$argv[1]]; 205 if(is_string($Command['Callback'][0])) 206 { 207 $Class = new $Command['Callback'][0]($this); 208 $Output = $Class->$Command['Callback'][1](); 209 } else $Output = call_user_func($Command['Callback']); 210 echo($Output); 211 211 } else echo('Command "'.$argv[1].'" not supported.'."\n"); 212 212 } else echo('No command was given as parameter'."\n"); 213 213 } 214 214 215 215 function RegisterCommandLine($Name, $Callback) 216 216 { 217 217 $this->CommandLine[$Name] = array('Name' => $Name, 'Callback' => $Callback); 218 218 } 219 219 220 220 function RegisterPageBar($Name) 221 221 { 222 222 $this->Bars[$Name] = array(); 223 223 } 224 224 225 225 function UnregisterPageBar($Name) 226 226 { 227 227 unset($this->Bars[$Name]); 228 228 } 229 229 230 230 function RegisterPageBarItem($BarName, $ItemName, $Callback) 231 231 { 232 232 $this->Bars[$BarName][$ItemName] = $Callback; 233 233 } 234 234 } -
trunk/Application/Version.php
r736 r738 1 1 <?php 2 2 3 $Revision = 73 6; // Subversion revision3 $Revision = 738; // Subversion revision 4 4 $DatabaseRevision = 736; // SQL structure revision 5 $ReleaseTime = strtotime('2015-04- 06');5 $ReleaseTime = strtotime('2015-04-14');
Note:
See TracChangeset
for help on using the changeset viewer.