<?php /** * Created by PhpStorm. * User: isuvorov * Date: 9/12/14 * Time: 11:14 AM */ require_once __DIR__ . '/gdocs.php'; $doc = new GDocs($url); var_dump($doc->getTable()->getAssoc()); var_dump($doc->getTable()->getRaw()); // //$result = GDocs::getFromUrl($url);
/** * Updates used and total quota. */ private function update_quota() { if (is_wp_error($e = $this->need_gdocs())) { $this->log_wp_error($e); return; } $quota_used = $this->gdocs->get_quota_used(); if (is_wp_error($quota_used)) { $this->log_wp_error($quota_used); } else { $this->options['quota_used'] = $quota_used; } $quota_total = $this->gdocs->get_quota_total(); if (is_wp_error($quota_total)) { $this->log_wp_error($quota_total); } else { $this->options['quota_total'] = $quota_total; } }