eZPublish  4.4
addlockstategroup.php File Reference

Variables

 $argumentConfig = ''
 
 $arguments = false
 
 $cli = eZCLI::instance()
 
 $config = ''
 
if($lockGroup) $db = eZDB::instance()
 
 $localeIDToUse = false
 
 $locales = eZContentLanguage::fetchLocaleList()
 
 $localeToUse = false
 
 $lockedState = $lockGroup->newState( 'locked' )
 
 $lockGroup = eZContentObjectStateGroup::fetchByIdentifier( 'ez_lock' )
 
 $messages = array()
 
 $notLockedState = $lockGroup->newState( 'not_locked' )
 
 $optionHelp = false
 
 $options = $script->getOptions( $config, $argumentConfig, $optionHelp, $arguments, $useStandardOptions )
 
 $preferredLocales = array( 'eng-GB', 'eng-US' )
 
 $script = eZScript::instance( $scriptSettings )
 
 $scriptSettings = array()
 
 $scriptSettings ['description'] = 'Add the ez_lock system state group'
 
 $scriptSettings ['use-session'] = true
 
 $scriptSettings ['use-modules'] = true
 
 $scriptSettings ['use-extensions'] = true
 
 $trans = $lockGroup->translationByLocale( $localeToUse )
 
 $useStandardOptions = true
 
if($lockGroup->isValid($messages)) else
 

Variable Documentation

$argumentConfig = ''
$arguments = false
$cli = eZCLI::instance()
$config = ''
if ($lockGroup) $db = eZDB::instance()
$localeIDToUse = false
$localeToUse = false
$lockedState = $lockGroup->newState( 'locked' )
foreach ($preferredLocales as $preferredLocale) if ($localeToUse===false) $lockGroup = eZContentObjectStateGroup::fetchByIdentifier( 'ez_lock' )
$messages = array()
$notLockedState = $lockGroup->newState( 'not_locked' )
$optionHelp = false
$options = $script->getOptions( $config, $argumentConfig, $optionHelp, $arguments, $useStandardOptions )
$preferredLocales = array( 'eng-GB', 'eng-US' )
$script = eZScript::instance( $scriptSettings )
$scriptSettings = array()
$scriptSettings['description'] = 'Add the ez_lock system state group'
$scriptSettings['use-session'] = true
$scriptSettings['use-modules'] = true
$scriptSettings['use-extensions'] = true
$trans = $lockGroup->translationByLocale( $localeToUse )
$useStandardOptions = true
if ($lockedState->isValid($messages)) else
Initial value:
{
$messages
Definition: status.php:30
static writeDebug($string, $label="", $backgroundClass="")
Definition: ezdebug.php:597