コード例 #1
0
/**
 * Create a new email list.
 *
 * @param  Zend_Gdata_Gapps $gapps     The service object to use for communicating with the Google
 *                                     Apps server.
 * @param  boolean          $html      True if output should be formatted for display in a web browser.
 * @param  string           $emailList The name of the email list to be created.
 * @return void
 */
function createEmailList($gapps, $html, $emailList)
{
    if ($html) {
        echo "<h2>Create Email List</h2>\n";
    }
    $gapps->createEmailList($emailList);
    if ($html) {
        echo "<p>Done.</p>\n";
    }
}