/** * Saves post */ public function save() { $parms = array('url' => $this->_url, 'description' => $this->_title, 'extended' => $this->_notes, 'shared' => $this->_shared ? 'yes' : 'no', 'tags' => implode(' ', (array) $this->_tags), 'replace' => 'yes'); if ($this->_date instanceof Zend_Date) { $parms['dt'] = $this->_date->get('Y-m-d\\TH:i:s\\Z'); } return $this->_service->makeRequest(Zend_Service_Delicious::PATH_POSTS_ADD, $parms); }
/** * Saves post * * @return DOMDocument */ public function save() { $parms = array('url' => $this->_url, 'description' => $this->_title, 'extended' => $this->_notes, 'shared' => $this->shared ? 'yes' : 'no', 'tags' => implode(' ', (array) $this->_tags), 'replace' => 'yes'); return $this->service->makeRequest(Delicious::PATH_POSTS_ADD, $parms); }