/**
* @see wcf\page\IPage::readParameters()
- */
+ */
public function readParameters() {
parent::readParameters();
/**
* @see wcf\page\IPage::readParameters()
- */
+ */
public function readParameters() {
parent::readParameters();
/**
* @see wcf\page\MultipleLinkPage::readObjects()
- */
+ */
protected function readObjects() {
$this->sqlOrderBy = 'acp_session_access_log.'.$this->sortField." ".$this->sortOrder;
/**
* @see wcf\page\MultipleLinkPage::initObjectList()
- */
+ */
public function initObjectList() {
parent::initObjectList();
/**
* @see wcf\page\MultipleLinkPage::$objectListClassName
- */
+ */
public $objectListClassName = 'wcf\data\cronjob\log\CronjobLogList';
/**
/**
* @see wcf\page\MultipleLinkPage::$objectListClassName
- */
+ */
public $objectListClassName = 'wcf\data\package\update\server\PackageUpdateServerList';
/**
/**
* @see wcf\page\MultipleLinkPage::readObjects()
- */
+ */
public function readObjects() {
$this->sqlOrderBy = ($this->sortField != 'packages' ? 'package_update_server.' : '') . $this->sortField.' '.$this->sortOrder;
/**
* @see wcf\page\MultipleLinkPage::$objectListClassName
- */
+ */
public $objectListClassName = 'wcf\data\user\group\UserGroupList';
/**
/**
* @see wcf\page\MultipleLinkPage::initObjectList()
- */
+ */
protected function initObjectList() {
parent::initObjectList();
/**
* @see wcf\page\MultipleLinkPage::initObjectList()
- */
+ */
protected function initObjectList() { }
/**
* @see wcf\page\MultipleLinkPage::readObjects()
- */
+ */
protected function readObjects() { }
}
/**
* indicates if database table index is an identity column
* @var boolean
- */
+ */
protected static $databaseTableIndexIsIdentity = true;
/**
/**
* Write the languages files.
*
- * @param array<integer> $languageCategoryIDs
+ * @param array<integer> $languageCategoryIDs
*/
protected function writeLanguageFiles(array $languageCategoryIDs) {
$conditions = new PreparedStatementConditionBuilder();
$conditions->add("languageCategoryID IN (?)", array($languageCategoryIDs));
// get language items
- $sql = "SELECT languageItem, languageItemValue, languageCustomItemValue,
+ $sql = "SELECT languageItem, languageItemValue, languageCustomItemValue,
languageUseCustomValue, languageCategoryID
FROM wcf".WCF_N."_language_item
".$conditions;
$sql = "UPDATE wcf".WCF_N."_page_menu_item
SET showOrder = ?,
menuPosition = ?
- WHERE menuItemID = ?";
+ WHERE menuItemID = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array(
$showOrder,
}
else {
$sql = "UPDATE wcf".WCF_N."_page_menu_item
- SET showOrder = showOrder - 1
- WHERE showOrder >= ?
+ SET showOrder = showOrder - 1
+ WHERE showOrder >= ?
AND menuPosition = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array(
$this->menuPosition
));
- $sql = "UPDATE wcf".WCF_N."_page_menu_item
- SET showOrder = showOrder + 1
- WHERE showOrder >= ?
+ $sql = "UPDATE wcf".WCF_N."_page_menu_item
+ SET showOrder = showOrder + 1
+ WHERE showOrder >= ?
AND menuPosition = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array(
}
else {
$sql = "UPDATE wcf".WCF_N."_page_menu_item
- SET showOrder = showOrder + 1
- WHERE showOrder >= ?
+ SET showOrder = showOrder + 1
+ WHERE showOrder >= ?
AND menuPosition = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array(
/**
* DatabaseObjectList object
* @var wcf\data\DatabaseObjectList
- */
+ */
public $objectList = null;
/**
* class name for DatabaseObjectList
* @var string
- */
+ */
public $objectListClassName = '';
/**
/**
* @see wcf\data\DatabaseObjectList::$sqlLimit
- */
+ */
public $sqlLimit = 0;
/**
/**
* @see wcf\data\DatabaseObjectList::$sqlOrderBy
- */
+ */
public $sqlOrderBy = '';
/**
/**
* Called within __construct(), override if neccessary.
- */
+ */
protected function init() { }
/**
/**
* application cache
* @var array<array>
- */
+ */
protected $cache = null;
/**
$conditions = new PreparedStatementConditionBuilder();
$conditions->add("categoryID IN (?)", array($optionCategories));
- $sql = "SELECT categoryID, parentCategoryName, categoryName,
+ $sql = "SELECT categoryID, parentCategoryName, categoryName,
(
SELECT COUNT(*) FROM wcf".WCF_N."_option WHERE categoryName = category.categoryName
) AS count
/**
* @see wcf\system\image\adapter\IImageAdapter::setColor()
- */
+ */
public function setColor($red, $green, $blue) {
$this->color = imageColorAllocate($this->image, $red, $green, $blue);
}
/**
* @see wcf\system\image\adapter\IImageAdapter::getWidth()
- */
+ */
public function getWidth() {
return $this->width;
}
/**
* @see wcf\system\image\adapter\IImageAdapter::isSupported()
- */
+ */
public static function isSupported() {
return true;
}
/**
* image height
* @var integer
- */
+ */
protected $height = 0;
/**
* image width
* @var integer
- */
+ */
protected $width = 0;
/**
* Returns a list of available language categories.
*
* @return array<wcf\data\language\category\LanguageCategory>
- */
+ */
public function getCategories() {
return $this->cache['categories'];
}
/**
* list of instructions
* @var array<array>
- */
+ */
protected $instructions = array(
'install' => array(),
'update' => array()
/**
* Registers route data within $_GET and $_REQUEST.
- */
+ */
protected function registerRouteData() {
foreach ($this->routeData as $key => $value) {
$_GET[$key] = $value;
class SessionFactory extends ACPSessionFactory {
/**
* @see wcf\system\session\ACPSessionFactory::$sessionEditor
- */
+ */
protected $sessionEditor = 'wcf\data\session\SessionEditor';
/**
* @see wcf\system\session\ACPSessionFactory::readSessionID()
- */
+ */
protected function readSessionID() {
$sessionID = parent::readSessionID();
/**
* @see wcf\system\session\ACPSessionFactory::init()
- */
+ */
protected function init() {
$usesCookies = true;