本文整理匯總了PHP中BaseObject::getJobType方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseObject::getJobType方法的具體用法?PHP BaseObject::getJobType怎麽用?PHP BaseObject::getJobType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BaseObject
的用法示例。
在下文中一共展示了BaseObject::getJobType方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: shouldConsumeCreatedEvent
public function shouldConsumeCreatedEvent(BaseObject $object)
{
if ($object instanceof BatchJob && $object->getJobType() == BatchJobType::BULKUPLOAD) {
return true;
}
return false;
}
示例2: shouldConsumeChangedEvent
public function shouldConsumeChangedEvent(BaseObject $object, array $modifiedColumns)
{
if ($object instanceof entry && in_array(entryPeer::STATUS, $modifiedColumns) && ($object->getStatus() == entryStatus::READY || $object->getStatus() == entryStatus::ERROR_CONVERTING) && $object->getReplacedEntryId()) {
return true;
}
if ($object instanceof UploadToken && in_array(UploadTokenPeer::STATUS, $modifiedColumns) && $object->getStatus() == UploadToken::UPLOAD_TOKEN_FULL_UPLOAD) {
return true;
}
if ($object instanceof flavorAsset && in_array(assetPeer::STATUS, $modifiedColumns)) {
return true;
}
if ($object instanceof BatchJob && $object->getJobType() == BatchJobType::BULKUPLOAD && $object->getStatus() == BatchJob::BATCHJOB_STATUS_ABORTED && in_array(BatchJobPeer::STATUS, $modifiedColumns) && in_array($object->getColumnsOldValue(BatchJobPeer::STATUS), BatchJobPeer::getClosedStatusList())) {
return true;
}
if ($object instanceof UserRole && in_array(UserRolePeer::PERMISSION_NAMES, $modifiedColumns)) {
return true;
}
if ($object instanceof FileSync && in_array(FileSyncPeer::STATUS, $modifiedColumns) && $object->getStatus() == FileSync::FILE_SYNC_STATUS_DELETED) {
return true;
}
return false;
}