コード例 #1
0
ファイル: Task.php プロジェクト: khanhdeux/typo3test
 /**
  * Instantiates the Object Manager
  */
 public function __construct()
 {
     parent::__construct();
     $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
     $this->commandManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\Cli\\CommandManager');
     $this->taskExecutor = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Scheduler\\TaskExecutor');
 }
コード例 #2
0
ファイル: Task.php プロジェクト: rickymathew/TYPO3.CMS
 /**
  * Instantiates the Object Manager
  */
 public function __construct()
 {
     parent::__construct();
     $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
     $this->commandManager = $this->objectManager->get(\TYPO3\CMS\Extbase\Mvc\Cli\CommandManager::class);
     $this->taskExecutor = $this->objectManager->get(\TYPO3\CMS\Extbase\Scheduler\TaskExecutor::class);
 }
コード例 #3
0
 /**
  * Creates the instance of the class. This call initializes the index file
  * path to the random value. After the task is configured, the user may
  * change the file and the file name will be serialized with the task and
  * used later.
  *
  * @see __sleep
  */
 public function __construct()
 {
     parent::__construct();
     $this->indexFilePath = self::DEFAULT_FILE_PATH . '/' . GeneralUtility::getRandomHexString(24) . '.xml';
 }
コード例 #4
0
ファイル: ReminderScheduler.php プロジェクト: ulrikkold/cal
 /**
  * PHP4 wrapper for constructor,
  * have to be here evne though the constructor is not defined in the derived class,
  * else the constructor of the parent class will not be called in PHP4
  */
 public function __construct()
 {
     parent::__construct();
 }
コード例 #5
0
ファイル: BulkUpdateTask.php プロジェクト: adrolli/TYPO3.CMS
 /**
  * Constructor initializes user record pointer
  */
 public function __construct()
 {
     parent::__construct();
     $this->userRecordPointer = array('FE' => 0, 'BE' => 0);
 }
コード例 #6
0
ファイル: AbstractTask.php プロジェクト: rabe69/yag
 public function __construct()
 {
     parent::__construct();
     $this->initializeExtbase();
     $this->initializeScheduler();
 }