}
if (!isset($this->contentList[$fileIndex])) {
- throw new SystemException("Tar: could find file '$index' in archive");
+ throw new SystemException("Tar: could find file '$index' in archive"); //TODO: undefined variable
}
return $this->contentList[$fileIndex];
}
WCF::getSession()->checkPermissions(array('admin.user.canEditUser'));
$userIDArray = $this->fetchUsers(function($userID, array $userData) {
- $user = new UserEditor(new User(null, $row));
+ $user = new UserEditor(new User(null, $row)); //TODO: undefined variable
$user->addToGroups($this->assignToGroupIDArray, false, false);
});
// search and replace
$matches = 0;
if ($useRegex) {
- $newValue = preg_replace('~'.$search.'~s'.(!$caseSensitive ? 'i' : ''), $replace, ($row['languageCustomItemValue'] ? $row['languageCustomItemValue'] : $row['languageItemValue']), -1, $matches);
+ $newValue = preg_replace('~'.$search.'~s'.(!$caseSensitive ? 'i' : ''), $replace, ($row['languageCustomItemValue'] ? $row['languageCustomItemValue'] : $row['languageItemValue']), -1, $matches); //TODO: undefined variable
}
else {
- if ($caseSensitive) $newValue = StringUtil::replace($search, $replace, ($row['languageCustomItemValue'] ? $row['languageCustomItemValue'] : $row['languageItemValue']), $matches);
+ if ($caseSensitive) $newValue = StringUtil::replace($search, $replace, ($row['languageCustomItemValue'] ? $row['languageCustomItemValue'] : $row['languageItemValue']), $matches); //TODO: undefined variable
else $newValue = StringUtil::replaceIgnoreCase($search, $replace, ($row['languageCustomItemValue'] ? $row['languageCustomItemValue'] : $row['languageItemValue']), $matches);
}
public function validatePrepareQueue() {
if (isset($this->parameters['packageID'])) $this->packageID = intval($this->parameters['packageID']);
- $this->package = new Package($packageID);
+ $this->package = new Package($packageID); //TODO: undefined variable
if (!$this->package->packageID) {
throw new ValidateActionException('Invalid package id');
}
$statement->execute(array($templateGroupName));
$row = $statement->fetchArray();
if (!$row['count']) break;
- $templateGroupName = $originalTemplatePackName . '_' . $i;
+ $templateGroupName = $originalTemplatePackName . '_' . $i; //TODO: undefined variable
$i++;
}
while (true);
}
else {
unset(self::$autoloadDirectories[$abbreviation]);
- throw new exception\SystemException('Unable to run '.$row->package.', '.$className.' missing.');
+ throw new exception\SystemException('Unable to run '.$row->package.', '.$className.' missing.'); //TODO: undefined variable
}
// load application settings if not within ACP
$statement = $this->dbObj->prepareStatement($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
- $indices[] = $index['Key_name'];
+ $indices[] = $index['Key_name']; //TODO: undefined variable
}
return $indices;
throw new SystemException("Object must be an instance of Imagick");
}
- $this->imagick = $imagick;
+ $this->imagick = $imagick; //TODO: undefined variable
$this->height = $this->imagick->getImageHeight();
$this->width = $this->imagick->getImageWidth();
}
// find location
if (preg_match('/location:([^\n]*)/i', $header, $match)) {
$location = trim($match[1]);
- if ($location != $url) {
+ if ($location != $url) { //TODO: undefined variable
$this->importLanguageFile($location, $packageList);
return;
}
* @see wcf\system\option\ISearchableUserOption::getSearchFormElement()
*/
public function getSearchFormElement(Option $option, $value) {
- return $this->getFormElement($optionData, $value);
+ return $this->getFormElement($optionData, $value); //TODO: undefined variable
}
/**
* @see wcf\system\option\ISearchableUserOption::getSearchFormElement()
*/
public function getSearchFormElement(Option $option, $value) {
- return $this->getFormElement($optionData, $value);
+ return $this->getFormElement($optionData, $value); //TODO: undefined variable
}
/**
*/
protected function executeDropIndexStatement($tableName, $indexName) {
if ($this->test) {
- if ($ownerPackageID = $this->getIndexOwnerID($tableName, $columnName)) {
+ if ($ownerPackageID = $this->getIndexOwnerID($tableName, $columnName)) { //TODO: undefined variable
if ($ownerPackageID != $this->package->packageID) {
throw new SystemException("Can not drop index '.$indexName.'. A package can only drop own indices.");
}
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute($conditions->getParameters());
while ($row = $statement->fetchArray()) {
- if (!isset($installedPackages[$row2['package']])) $installedPackages[$row2['package']] = array();
+ if (!isset($installedPackages[$row2['package']])) $installedPackages[$row2['package']] = array(); //TODO: undefined variable
$installedPackages[$row2['package']][$row2['packageID']] = (isset($this->virtualPackageVersions[$row2['packageID']]) ? $this->virtualPackageVersions[$row2['packageID']] : $row2['packageVersion']);
}
foreach ($items as $item) {
$statement->execute(array(
$item['attributes']['name'],
- $this->getDefinitionID($data['elements']['definitionname']),
+ $this->getDefinitionID($data['elements']['definitionname']), //TODO: undefined variable
$this->installation->getPackageID()
));
}