Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Service/Delicious/SimplePost.php
Go to the documentation of this file.
00001 <?php
00002 
00034 class Zend_Service_Delicious_SimplePost
00035 {
00039     protected $_url;
00040 
00044     protected $_title;
00045 
00049     protected $_notes;
00050 
00054     protected $_tags = array();
00055 
00063     public function __construct(array $post)
00064     {
00065         if (!isset($post['u']) || !isset($post['d'])) {
00069             require_once 'Zend/Service/Delicious/Exception.php';
00070             throw new Zend_Service_Delicious_Exception('Title and URL not set.');
00071         }
00072 
00073         $this->_url   = $post['u'];
00074         $this->_title = $post['d'];
00075 
00076         if (isset($post['t'])) {
00077             $this->_tags = $post['t'];
00078         }
00079         if (isset($post['n'])) {
00080             $this->_notes = $post['n'];
00081         }
00082     }
00083 
00089     public function getUrl()
00090     {
00091         return $this->_url;
00092     }
00093 
00099     public function getTitle()
00100     {
00101         return $this->_title;
00102     }
00103 
00109     public function getNotes()
00110     {
00111         return $this->_notes;
00112     }
00113 
00119     public function getTags()
00120     {
00121         return $this->_tags;
00122     }
00123 }
 All Data Structures Namespaces Files Functions Variables Enumerations