/**
  * Print table
  */
 protected function printBody()
 {
     // get GData client
     $gClient = GClient::getInstance(GDOCS_SPREADSHEET);
     // get cell entry
     $entry = $gClient->getCell($this->atts['st_id'], $this->atts['wt_id'], $this->atts['cell_id']);
     if (!$entry) {
         throw new Exception();
     }
     // format
     return GDisplay::printCell($entry);
 }
/**
 * Verify CAPTCHA
 */
function gdocs_verify()
{
    $captcha = NULL;
    $token = NULL;
    if (isset($_POST['gdocs_captcha']) && isset($_POST['gdocs_token'])) {
        $captcha = $_POST['gdocs_captcha'];
        $token = $_POST['gdocs_token'];
        $gdClient = GClient::getInstance(GDOCS_DOCUMENT, $token, $captcha);
        gdocs_update_list();
    } else {
        // missing paramter
        $error = "Required parameters missing.";
        header('HTTP/1.0 400 Bad Request');
        header('X-JSON: (' . json_encode($error) . ')');
        return NULL;
    }
}
 /**
  * Class constructor
  * @method	GClient_St	GClient_St()	GClient_St()	creates and initializes new GClient object for Google Spreadsheets
  * @return	GClient_St
  */
 public function __construct($token = NULL, $captcha = NULL)
 {
     parent::__construct(Zend_Gdata_Spreadsheets::AUTH_SERVICE_NAME, $token, $captcha);
 }