/** * Create a new nickname. * * @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 $username The username to which the nickname should be assigned. * @param string $nickname The name of the nickname to be created. * @return void */ function createNickname($gapps, $html, $username, $nickname) { if ($html) { echo "<h2>Create Nickname</h2>\n"; } $gapps->createNickname($username, $nickname); if ($html) { echo "<p>Done.</p>\n"; } }