PHP 클래스 luya\console\Importer
Abstract importer class provides basic funcionality to access the
helper class via
getImporter(). Each importer class must have run()
method where the basic logic of the class will be executed.
php
class XyzImporter extends \luya\console\Importer
{
public function run()
{
$this->addLog('XyzImporter have been started');
importer logic goes here
}
}
파일 보기
프로젝트 열기: luyadev/luya
공개 프로퍼티들
프로퍼티 |
타입 |
설명 |
|
$queueListPosition |
|
The priority between 0 and 100 where to Import command should be queued.
+ 0 = First
+ 100 = Last |
|
공개 메소드들
메소드 |
설명 |
|
__construct ( luya\console\interfaces\ImportControllerInterface $importer, $config = [] ) |
Class constructor containing the importer object from where its called. |
|
addLog ( string $value ) |
Add something to the output. Wrapper method from importer. |
|
getImporter ( ) : object |
Returns the import object to use the importers methods. |
|
run ( ) |
Each Importer Class must contain a run method. |
|
메소드 상세
Class constructor containing the importer object from where its called.
public __construct ( luya\console\interfaces\ImportControllerInterface $importer, $config = [] ) |
$importer |
luya\console\interfaces\ImportControllerInterface |
Import Object `\luya\commands\ImportController`. |
php
$this->addLog('new block have been found and added to database');
Returns the import object to use the importers methods.
Each Importer Class must contain a run method.
프로퍼티 상세
$queueListPosition 공개적으로 프로퍼티
The priority between 0 and 100 where to Import command should be queued.
+ 0 = First
+ 100 = Last
public $queueListPosition |