本文整理汇总了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;
}