/** * Set the packager aka packager author. * * (packager is a bit too ambigious in this context). * * @param string $name * @param string $email */ public function setPackageMaintainer($name, $email) { $this->getElement('/changelog[@version="' . $this->_version . '"]/packagemeta/date')->nodeValue = Time::GetCurrent(Time::TIMEZONE_GMT, 'r'); $this->getElement('/changelog[@version="' . $this->_version . '"]/packagemeta/maintainer[@name="' . $name . '"][@email="' . $email . '"]'); $this->getElement('/changelog[@version="' . $this->_version . '"]/packagemeta/packager')->nodeValue = 'CAE2 ' . ComponentHandler::GetComponent('core')->getVersion(); }
private function _getFileConflictsComponent($arrayoffiles) { $man = $this->getManifest(); $basedir = $this->getBaseDir(); $component = ComponentHandler::GetComponent($man['Bundle-Name']); $changedfiles = $component->getChangedFiles(); $ret = array(); // I need to run through the array of files, because if the user changed // a file that's no longer under the package's control... I don't care. foreach ($arrayoffiles as $line) { // Now I can see if the file is in the array of changed files. if (in_array($line, $changedfiles)) $ret[] = $line; } return $ret; }