Sets the Messaging Lang Templates Status attribute value.
@param string $templates_status New value for attribute
@return CNabuDataObject Returns self instance to grant chained setters call.
169807
public function setTemplatesStatus(string $templates_status = "D") : CNabuDataObject
    {
        if ($templates_status === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$templates_status")
            );
        }
        $this->setValue('nb_messaging_lang_templates_status', $templates_status);
        
        return $this;
    }
313231
public function setStatus(\Sulu\Bundle\Sales\ShippingBundle\Entity\ShippingStatus $status)
    {
        $this->status = $status;
    
        return $this;
    }
1371985
public function setSiteTemplates($siteId, $templates = array()) {
        $sort = 150;

        $validTemplates = array();
        foreach ($templates as $template) {
            if (!empty($template['IN_DIR'])) {
                $template['CONDITION'] = sprintf('CSite::InDir(\'%s\')',
                    $template['IN_DIR']
                );
            } elseif (!empty($template['IN_PERIOD']) && is_array($template['IN_PERIOD'])) {
                list($t1, $t2) = $template['IN_PERIOD'];
                $t1 = is_numeric($t1) ? $t1 : strtotime($t1);
                $t2 = is_numeric($t2) ? $t2 : strtotime($t2);
                $template['CONDITION'] = sprintf('CSite::InPeriod(%s,%s)',
                    $t1,
                    $t2
                );
            } elseif (!empty($template['IN_GROUP']) && is_array($template['IN_GROUP'])) {
                $template['CONDITION'] = sprintf('CSite::InGroup(array(%s))',
                    implode(',', $template['IN_GROUP'])
                );
            } elseif (!empty($template['GET_PARAM']) && is_array($template['GET_PARAM'])) {
                $val = reset($template['GET_PARAM']);
                $key = key($template['GET_PARAM']);
                $template['CONDITION'] = sprintf('$_GET[\'%s\']==\'%s\'',
                    $key,
                    $val
                );
            }

            if (empty($template['TEMPLATE'])) {
                continue;
            }

            if (!isset($template['CONDITION'])) {
                continue;
            }

            $validTemplates[] = array(
                'TEMPLATE' => $template['TEMPLATE'],
                'CONDITION' => $template['CONDITION'],
                'SORT' => $sort
            );

            $sort++;
        }

        $langs = new \CLang;
        $ok = $langs->Update($siteId, array(
            'TEMPLATE' => $validTemplates
        ));

        return $ok;
    }
92576
public function setTemplate(string $template): self
    {
        $projectDir = System::getContainer()->get('huh.utils.container')->getProjectDir();

        $this->template = $projectDir.\DIRECTORY_SEPARATOR.ltrim(preg_replace('#^'.$projectDir.'#', '', $template), \DIRECTORY_SEPARATOR);

        return $this;
    }
380674
public function setAsActive()
    {
        if ( ! $this->exists() ) {
            throw new FileExistException('Remote template does not exist');
        }

        try {
            $this->getSoapClient()->SetRemoteTemplate(['filename' => $this->getName() ]);
            $this->isActive = true;

            return $this;
        } catch ( SoapException $ex ) {
            throw new ActiveException('Error while setting the remote template as the active template' , $ex);
        }
    }
1130168
public static function create($templateName, array $context = [], $status = 200, $reason = '', array $headers = [])
    {
        return new static($templateName, $context, $status, $reason, $headers);
    }
938727
public function setMessagingServiceId(int $nb_messaging_service_id) : CNabuDataObject
    {
        if ($nb_messaging_service_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_messaging_service_id")
            );
        }
        $this->setValue('nb_messaging_service_id', $nb_messaging_service_id);
        
        return $this;
    }
420783
function setIsTemplatesUsageStatisticsEnabled( $enabled )
    {
        $wasEnabled = false;
        if( isset( $GLOBALS['eZTemplateDebugTemplatesUsageStatisticsEnabled'] ) )
            $wasEnabled = $GLOBALS['eZTemplateDebugTemplatesUsageStatisticsEnabled'];

        $GLOBALS['eZTemplateDebugTemplatesUsageStatisticsEnabled'] = $enabled;
        return $wasEnabled;
    }
918220
private function setBasicData(FrontendTemplate $template, array $data)
    {
        foreach ($data as $k => $v) {
            if (0 === strpos($k, 'cookiebar_')) {
                $template->{substr($k, 10)} = $v;
            }
        }

        $template->raw = $data;
    }
1109013
public function setMailTemplate(\KRS\MailBundle\Entity\MailTemplate $mailTemplate = null)
    {
        $this->mailTemplate = $mailTemplate;
    
        return $this;
    }
677752
public function set_template($template)
	{
		// make sure the template is a View
		if (is_string($template))
		{
			$this->template = $this->view($template);
		}
		else
		{
			$this->template = $template;
		}

		// return the template view for chaining
		return $this->template;
	}
1175952
public function setTemplate(Template $template = null)
	{
		if ($this->writeOnce($this->template, $template)) {
			$this->template->addTemplateLayout($this);
		}
	}
652118
protected function notifyNotFoundTemplates($templatesNames)
    {
        $this->stdout("The following fixtures templates were NOT found:\n\n", Console::FG_RED);

        foreach ($templatesNames as $name) {
            $this->stdout("\t * $name \n", Console::FG_GREEN);
        }

        $this->stdout("\n");
    }
753419
public function setTemplateType(TemplateTypeInterface $templateType)
    {
        $this->templateTypeId = $templateType->getId();

        return parent::setTemplateType($templateType);
    }
1138071
public static function template($template, $parameter = array(), $status = 200, $headers = array())
    {
        View::setTemplate($template, $parameter);

        return new Response('', $status, $headers);
    }
1008741
public static function message($template_body = null, $options = array()) {
        $message = new Message();
        MailHelper::setMessage($message);

        if ($template_body) {
            $template = Module::template($template_body);
            $message->body($template->compile($options));
        }

        return $message;
    }
177024
public function getAcceptedTemplateFormats()
    {
        try {
            $ret    = array();
            $result = $this->getSoapClient()->GetTemplateFormats();
            if ( isset($result->GetTemplateFormatsResult->string) ) {
                $ret = $result->GetTemplateFormatsResult->string;
                $ret = array_map('strtolower' , $ret);
            }

            return $ret;
        } catch ( SoapException $ex ) {
            throw new StatusException('Error while getting the list of accepted template formats' , $ex);
        }
    }