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 } }
저자: Basil Suter ([email protected])
상속: extends yii\base\Object
파일 보기 프로젝트 열기: 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.

메소드 상세

__construct() 공개 메소드

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`.

addLog() 공개 메소드

php $this->addLog('new block have been found and added to database');
public addLog ( string $value )
$value string The value to be written for the log output.

getImporter() 공개 메소드

Returns the import object to use the importers methods.
public getImporter ( ) : object
리턴 object Import \luya\console\interfaces\ImportControllerInterface

run() 추상적인 공개 메소드

Each Importer Class must contain a run method.
abstract public run ( )

프로퍼티 상세

$queueListPosition 공개적으로 프로퍼티

The priority between 0 and 100 where to Import command should be queued. + 0 = First + 100 = Last
public $queueListPosition