protected function convertation()
    {
        if ($this->executionTime instanceof DateTime) {
            $this->executionTime = $this->executionTime->toString();
        } elseif ($this->executionTime === null) {
            $time = new DateTime();
            $this->executionTime = $time->toString();
        }

        foreach (['periodically', 'active'] as $property) {
            if ($this->$property === true) {
                $this->$property = 'Y';
            } else {
                $this->$property = 'N';
            }
        }
    }
protected function convertation()
    {
        if ($this->executionTime instanceof DateTime) {
            $this->executionTime = $this->executionTime->toString();
        } elseif ($this->executionTime === null) {
            $time = new DateTime();
            $this->executionTime = $time->toString();
        }

        foreach (['periodically', 'active'] as $property) {
            if ($this->$property === true) {
                $this->$property = 'Y';
            } else {
                $this->$property = 'N';
            }
        }
    }
protected function convertation ( ) { if ( $ this -> executionTime instanceof DateTime ) { $ this -> executionTime = $ this -> executionTime -> toString ( ) ; } elseif ( $ this -> executionTime === null ) { $ time = new DateTime ( ) ; $ this -> executionTime = $ time -> toString ( ) ; } foreach ( [ 'periodically' , 'active' ] as $ property ) { if ( $ this -> $ property === true ) { $ this -> $ property = 'Y' ; } else { $ this -> $ property = 'N' ; } } }
Convertation property for creation agent in queue through the old and dirty Bitrix API.
Convertation property for creation agent in queue through the old and dirty Bitrix API .