<?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> <refentry xml:id="yaf-application.execute" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Yaf_Application::execute</refname> <refpurpose>Execute a callback</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>void</type><methodname>Yaf_Application::execute</methodname> <methodparam><type>callable</type><parameter>entry</parameter></methodparam> <methodparam><type>string</type><parameter>...</parameter></methodparam> </methodsynopsis> <para> This method is typically used to run Yaf_Application in a crontab work. Make the crontab work can also use the autoloader and Bootstrap mechanism. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <variablelist> <varlistentry> <term><parameter>entry</parameter></term> <listitem> <para> a valid callback </para> </listitem> </varlistentry> <varlistentry> <term><parameter>...</parameter></term> <listitem> <para> parameters will pass to the callback </para> </listitem> </varlistentry> </variablelist> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> <title><function>Yaf_Application::execute</function>example</title> <programlisting role="php"> <![CDATA[ <?php function main($argc, $argv) { } $config = array( "application" => array( "directory" => realpath(dirname(__FILE__)) . "/application", ), ); /** Yaf_Application */ $application = new Yaf_Application($config); $application->execute("main", $argc, $argv); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ ]]> </screen> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"~/.phpdoc/manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->