Class craft\queue\jobs\FindAndReplace
- Inheritance
- craft\queue\jobs\FindAndReplace » craft\queue\BaseJob » yii\base\BaseObject
- Implements
- craft\queue\JobInterface, yii\base\Configurable
- Available since version
- 3.0
- Source Code
- https://github.com/craftcms/cms/blob/master/src/queue/jobs/FindAndReplace.php
FindAndReplace job
Property | Type | Description | Defined By |
---|---|---|---|
$description |
string, null | The configured job description | craft\queue\BaseJob |
$find |
string, null | The search text | craft\queue\jobs\FindAndReplace |
$replace |
string, null | The replacement text | craft\queue\jobs\FindAndReplace |
Method | Description | Defined By |
---|---|---|
__call() |
Calls the named method which is not a class method. | yii\base\BaseObject |
__construct() |
Constructor. | yii\base\BaseObject |
__get() |
Returns the value of an object property. | yii\base\BaseObject |
__isset() |
Checks if a property is set, i.e. defined and not null. | yii\base\BaseObject |
__set() |
Sets value of an object property. | yii\base\BaseObject |
__unset() |
Sets an object property to null. | yii\base\BaseObject |
canGetProperty() |
Returns a value indicating whether a property can be read. | yii\base\BaseObject |
canSetProperty() |
Returns a value indicating whether a property can be set. | yii\base\BaseObject |
className() |
Returns the fully qualified name of this class. | yii\base\BaseObject |
execute() |
craft\queue\jobs\FindAndReplace | |
getDescription() |
Returns the description that should be used for the job. | craft\queue\BaseJob |
hasMethod() |
Returns a value indicating whether a method is defined. | yii\base\BaseObject |
hasProperty() |
Returns a value indicating whether a property is defined. | yii\base\BaseObject |
init() |
Initializes the object. | craft\queue\BaseJob |
Method | Description | Defined By |
---|---|---|
defaultDescription() |
Returns a default description for getDescription(). | craft\queue\jobs\FindAndReplace |
setProgress() |
Sets the job progress on the queue. | craft\queue\BaseJob |
Property Details
$find
public property
#
The search text
public string, null $find = null
$replace
public property
#
The replacement text
public string, null $replace = null
Method Details
defaultDescription()
protected method
#
Returns a default description for getDescription().
protected string, null defaultDescription ( )
execute()
public method
#
public void execute ( $queue )
$queue |
\yii\queue\Queue, craft\queue\QueueInterface | The queue the job belongs to |
throws | yii\base\Exception |
---|