Esempio n. 1
0
		<pre><code><?php 
inject_sample('code/import_service.txt');
?>
        </code>
		</pre>
</article>

<article id="export_service">
    <h3> Export Service </h3>
    <p>
        Using this service you can export data from the server to store or import to another server. You must be authorized as the superuesr to use this service. data is compressed as a zip archive and sent as binary data. First construct an ExportTask object that defines what data is to be extracted, then pass it to the startExportTask function. Data can then be stored using PHP file I/O functions, or streamed to a browser by preparing the proper headers and echoing the binary data.
        <br>
        The example below will request an export, then refresh the status of the export every 10 seconds. When it is finished, it will download the data as a zip file, and then store it in a file (export.zip) and offer a link to download the file.
    </p>
		<pre><code><?php 
inject_sample('code/export_service.txt');
?>
        </code>
		</pre>
</article>



<!-- END OF ARTICLE SECTION -->
    </section>

	<footer style="float: right;">
		<a href="#intro">back to top</a>
	</footer>

Esempio n. 2
0
            </p>
		<pre><code><?php 
inject_sample('code/logcollector_download.txt');
?>
            </code>
		</pre>
        </article>

        <article id="logcollector_delete">
            <h3> Deleting all Log Collectors </h3>
            <p>
                Once you have downloaded the content of a log collector and no longer wish to retain it on the server, you can delete it using deleteLogCollector.
                You may also delete all the existing log collectors using deleteAllLogCollectors.
            </p>
		<pre><code><?php 
inject_sample('code/logcollector_delete.txt');
?>
            </code>
		</pre>
        </article>


	<!-- END OF ARTICLE SECTION -->
    </section>

	<footer style="float: right;">
		<a href="#intro">back to top</a>
	</footer>


  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
Esempio n. 3
0
inject_sample('code/permission_delete.txt');
?>
		</code>
		</pre>
	</article>

        <article id="permission_update">
                <h3> Updating a permission of a resource </h3>
                <p>
                Using the updatePermissions() function, you can alter or change the permissions of a resource. You must first request the existing permissions using the <a href="#permission_get">getPermissions() function</a>.
                Then create a new Permission object, and add it to the current permissions. Once you issue the updatePermissions command, the permissions will be updated. The example below lets user 'joeuser' become an administer over the /images/JRLogo resource.
                </p>
                <pre>
                <code>
                        <?php 
inject_sample('code/permission_update.txt');
?>
                </code>
                </pre>
        </article>


    </section>

	<footer style="float: right;">
		<a href="#intro">back to top</a>
	</footer>

  <script src="highlight/highlight.pack.js"></script>
  <script type="text/javascript">
	hljs.tabReplace = '  ';