use wcf\util\XML;
// define
-define('PACKAGE_ID', '0');
+define('PACKAGE_ID', 0);
define('HTTP_ENABLE_NO_CACHE_HEADERS', 0);
define('HTTP_ENABLE_GZIP', 0);
define('HTTP_GZIP_LEVEL', 0);
/**
* Sets the allowed BBCodes.
*
- * @param string[]
+ * @param string[] $bbCodes
*/
public function setAllowedBBCodes(array $bbCodes) {
$this->allowedBBCodes = $bbCodes;
/**
* @see \wcf\system\image\adapter\IImageAdapter::drawText()
*/
- public function drawText($text, $x, $y, $font, $size, $opacity = 1) {
+ public function drawText($text, $x, $y, $font, $size, $opacity = 1.0) {
// set opacity
$color = imagecolorallocatealpha($this->image, $this->colorData['red'], $this->colorData['green'], $this->colorData['blue'], (1 - $opacity) * 127);
/**
* @see \wcf\system\image\adapter\IImageAdapter::drawTextRelative()
*/
- public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1) {
+ public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1.0) {
// split text into multiple lines
$lines = explode("\n", StringUtil::unifyNewlines($text));
* @see \wcf\system\image\adapter\IImageAdapter::getImage()
* @see \wcf\system\image\adapter\IImageAdapter::setColor()
*/
- public function drawText($text, $x, $y, $font, $size, $opacity = 1);
+ public function drawText($text, $x, $y, $font, $size, $opacity = 1.0);
/**
* Draws (multiple lines of) text on the image at the given relative position
* @param integer $size font size
* @param float $opacity
*/
- public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1);
+ public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1.0);
/**
* Returns true if the given text fits the image.
/**
* @see \wcf\system\image\adapter\IImageAdapter::drawText()
*/
- public function drawText($text, $x, $y, $font, $size, $opacity = 1) {
+ public function drawText($text, $x, $y, $font, $size, $opacity = 1.0) {
if (!$this->adapter->hasColor()) {
throw new SystemException("Cannot draw text unless a color has been specified with setColor().");
}
/**
* @see \wcf\system\image\adapter\IImageAdapter::drawTextRelative()
*/
- public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1) {
+ public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1.0) {
if (!$this->adapter->hasColor()) {
throw new SystemException("Cannot draw text unless a color has been specified with setColor().");
}
/**
* @see \wcf\system\image\adapter\IImageAdapter::drawText()
*/
- public function drawText($text, $x, $y, $font, $size, $opacity = 1) {
+ public function drawText($text, $x, $y, $font, $size, $opacity = 1.0) {
$draw = new \ImagickDraw();
$draw->setFillOpacity($opacity);
$draw->setFillColor($this->color);
/**
* @see \wcf\system\image\adapter\IImageAdapter::drawTextRelative()
*/
- public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1) {
+ public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1.0) {
$draw = new \ImagickDraw();
$draw->setFont($font);
$draw->setFontSize($size);
/**
* Returns all assigned labels, optionally filtered to validate permissions.
*
- * @param integer $objectTypeID
- * @param integer[] $objectIds
- * @param boolean $validatePermissions
+ * @param integer $objectTypeID
+ * @param integer[] $objectIDs
+ * @param boolean $validatePermissions
* @return array
*/
public function getAssignedLabels($objectTypeID, array $objectIDs, $validatePermissions = true) {
/**
* Removes all assigned labels for given object ids.
*
- * @param integer $objectTypeID
- * @param integer[] $objectID
+ * @param integer $objectTypeID
+ * @param integer[] $objectIDs
*/
public function removeLabels($objectTypeID, array $objectIDs) {
$conditions = new PreparedStatementConditionBuilder();