setExclusiveLock example

public function write($filename = null, ?Enlight_Config $config = null, $exclusiveLock = null)
    {
        if ($filename !== null) {
            $this->setFilename($filename);
        }

        if ($config !== null) {
            $this->setConfig($config);
        }

        if ($exclusiveLock !== null) {
            $this->setExclusiveLock($exclusiveLock);
        }

        if ($this->_filename === null) {
            throw new Enlight_Config_Exception('No filename was set');
        }

        if ($this->_config === null) {
            throw new Enlight_Config_Exception('No config was set');
        }

        $configString = $this->render();

        
public function write($filename = null, Zend_Config $config = null, $exclusiveLock = null)
    {
        if ($filename !== null) {
            $this->setFilename($filename);
        }

        if ($config !== null) {
            $this->setConfig($config);
        }

        if ($exclusiveLock !== null) {
            $this->setExclusiveLock($exclusiveLock);
        }

        if ($this->_filename === null) {
            throw new Zend_Config_Exception('No filename was set');
        }

        if ($this->_config === null) {
            throw new Zend_Config_Exception('No config was set');
        }

        $configString = $this->render();

        
Home | Imprint | This part of the site doesn't use cookies.