/** * Renew properties by path * * @param string $path Path * * @return boolean */ protected function renewByPath($path) { $this->setSize(intval(\Includes\Utils\FileManager::getFileSize($path))); $this->setDate(\XLite\Core\Converter::time()); return true; }
/** * Return entry pack size * * @return integer */ public function getPackSize() { return \Includes\Utils\FileManager::getFileSize($this->getRepositoryPath()); }