芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/vendor/afterlogic/dav/lib/DAV/CardDAV/GAB/Card.php
_cardInfo = $cardInfo; } /** * Returns the node name * * @return void */ public function getName() { return $this->_cardInfo['uri']; } /** * Returns the mime content-type * * @return string */ public function getContentType() { return 'text/x-vcard; charset=utf-8'; } /** * Returns the vcard * * @return string */ public function get() { return $this->_cardInfo['carddata']; } /** * Returns the last modification timestamp * * @return int */ public function getLastModified() { return $this->_cardInfo['lastmodified']; } /** * Returns the size of the vcard * * @return int */ public function getSize() { return strlen($this->_cardInfo['carddata']); } public function getETag() { if (isset($this->cardData['etag'])) { return $this->cardData['etag']; } else { $data = $this->get(); if (is_string($data)) { return '"' . md5($data) . '"'; } else { // We refuse to calculate the md5 if it's a stream. return null; } } } }