Changeset 564


Ignore:
Timestamp:
Aug 19, 2013, 12:52:44 AM (11 years ago)
Author:
chronos
Message:
  • Fixed: Export class dependency.
Location:
trunk/Modules/Export
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Export/CreateAddon.php

    r558 r564  
    11<?php
     2
     3include_once(dirname(__FILE__).'/Export.php');
    24
    35class ExportAddon extends Export
  • trunk/Modules/Export/Export.php

    r558 r564  
    11<?php
    2 
    3 include_once(dirname(__FILE__).'/Page.php');
    4 include_once(dirname(__FILE__).'/ExportOutput.php');
    5 
    6 class ModuleExport extends AppModule
    7 {
    8   function __construct($System)
    9   {
    10     parent::__construct($System);
    11     $this->Name = 'Export';
    12     $this->Version = '1.0';
    13     $this->Creator = 'Chronos';
    14     $this->License = 'GNU/GPL';
    15     $this->Description = 'Allow parametric export translated texts to various supported output formats';
    16     $this->Dependencies = array();
    17   }
    18  
    19   function Start()
    20   {
    21         $this->System->RegisterPage('export', 'PageExport');
    22         $this->System->RegisterMenuItem(array(
    23         'Title' => 'Exporty',
    24         'Hint' => 'Zde si můžete stáhnout přeložené texty',
    25         'Link' => $this->System->Link('/export/'),
    26         'Permission' => LICENCE_ANONYMOUS,
    27         'Icon' => '',
    28     ), 2);
    29   }
    30 }
    312
    323class Export extends Module
     
    351322          {
    352323            $Output .= $Progress."%\r";
     324echo($Output);
     325$Output = '';
    353326            $OldProgress = $Progress;
    354327          }
     
    433406  }
    434407}
     408
     409include_once(dirname(__FILE__).'/Page.php');
     410include_once(dirname(__FILE__).'/ExportOutput.php');
     411
     412class ModuleExport extends AppModule
     413{
     414  function __construct($System)
     415  {
     416    parent::__construct($System);
     417    $this->Name = 'Export';
     418    $this->Version = '1.0';
     419    $this->Creator = 'Chronos';
     420    $this->License = 'GNU/GPL';
     421    $this->Description = 'Allow parametric export translated texts to various supported output formats';
     422    $this->Dependencies = array();
     423  }
     424 
     425  function Start()
     426  {
     427        $this->System->RegisterPage('export', 'PageExport');
     428        $this->System->RegisterMenuItem(array(
     429        'Title' => 'Exporty',
     430        'Hint' => 'Zde si můžete stáhnout přeložené texty',
     431        'Link' => $this->System->Link('/export/'),
     432        'Permission' => LICENCE_ANONYMOUS,
     433        'Icon' => '',
     434    ), 2);
     435  }
     436}
     437
Note: See TracChangeset for help on using the changeset viewer.