<?xml version="1.0" encoding="utf-8"?>
<KScriptSetting>
  <Name>MultilingualRepository</Name>
  <Description>The repository that contains Multilingual objects like Label, htmlBlock.</Description>
  <Example> <![CDATA[
  <script engine="kscript">

      var block  = k.site.htmlBlocks.get("blockname");
      
      var label = k.site.labels.get("labelkey");  

    </script>
	]]> 
  </Example>
  <Props />
  <Methods> 
    <Method>
      <Name>all</Name>
      <Description>Return an array of the SiteObjects</Description>
      <Example>

        <![CDATA[
  <script engine="kscript">

      var allitems = k.site.htmlBlocks.all(); 

    </script>
	]]>
      
      </Example>
      <Params />
      <ReturnType>MultilingualObject</ReturnType>
    </Method>
 
    <Method>
      <Name>get</Name>
      <Description>Get an item based on Name or Id</Description>
      <Example> 
        <![CDATA[
<script engine="kscript">
     
   var label = k.site.labels.get("key"); 
  
</script> 
	]]>
      </Example>
      <Params>
        <Param>
          <Name>nameOrId</Name>
          <Description>nameOrId</Description>
          <Type>object</Type>
        </Param>
      </Params>
      <ReturnType>MultilingualObject</ReturnType>
    </Method> 

    <Method>
      <Name>update</Name>
      <Description>update the text value</Description>
      <Example>
        <![CDATA[
<script engine="kscript">
     
   var label = k.site.labels.get("key"); 
   label.value = "new label value"; 
   k.site.labels.update(label);
    
</script> 
	]]> 
      </Example>
      <Params>
        <Param>
          <Name>value</Name>
          <Description>Update the SiteOject property values</Description>
          <Type>MultilingualObject</Type>
        </Param>
      </Params> 
    </Method>  
    
    <Method>
      <Name>delete</Name>
      <Description>Delete an item</Description>
      <Example>
        <![CDATA[
<script engine="kscript">
     
   var label = k.site.labels.get("key");  
   k.site.labels.delete(label.name);
    
</script> 
	]]>

      </Example>
      <Params>
        <Param>
          <Name>nameOrId</Name>
          <Description>nameOrId</Description>
          <Type>object</Type>
        </Param>
      </Params> 
    </Method>
 
    <Method>
      <Name>add</Name>
      <Description>add an item</Description>
      <Example>
        <![CDATA[
<script engine="kscript">
  var block = {};
  block.name = "blockname";
  block.value = "new  body";
  k.site.htmlBlocks.add(block);
</script>
	]]>

      </Example>
      <Params>
        <Param>
          <Name>object</Name>
          <Description>The Multilingual object values</Description>
          <Type>MultilingualObject</Type>
        </Param>
      </Params>
    </Method> 
  </Methods>
</KScriptSetting> 
