Add throws tags
authorMatthias Schmidt <gravatronics@live.com>
Wed, 6 Apr 2016 15:46:51 +0000 (17:46 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 6 Apr 2016 15:46:55 +0000 (17:46 +0200)
124 files changed:
wcfsetup/install.php
wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php
wcfsetup/install/files/lib/acp/form/UserAddForm.class.php
wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php
wcfsetup/install/files/lib/action/MessageQuoteAction.class.php
wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php
wcfsetup/install/files/lib/data/DatabaseObjectDecorator.class.php
wcfsetup/install/files/lib/data/ProcessibleDatabaseObject.class.php
wcfsetup/install/files/lib/data/TMultiCategoryObject.class.php
wcfsetup/install/files/lib/data/application/Application.class.php
wcfsetup/install/files/lib/data/bbcode/MessagePreviewAction.class.php
wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php
wcfsetup/install/files/lib/data/comment/CommentAction.class.php
wcfsetup/install/files/lib/data/language/LanguageEditor.class.php
wcfsetup/install/files/lib/data/media/ViewableMedia.class.php
wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php
wcfsetup/install/files/lib/data/package/PackageAction.class.php
wcfsetup/install/files/lib/data/page/Page.class.php
wcfsetup/install/files/lib/data/sitemap/Sitemap.class.php
wcfsetup/install/files/lib/data/style/StyleEditor.class.php
wcfsetup/install/files/lib/data/user/UserAction.class.php
wcfsetup/install/files/lib/data/user/avatar/UserAvatarAction.class.php
wcfsetup/install/files/lib/data/user/group/UserGroup.class.php
wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php
wcfsetup/install/files/lib/data/user/option/ViewableUserOption.class.php
wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php
wcfsetup/install/files/lib/system/Callback.class.php
wcfsetup/install/files/lib/system/Regex.class.php
wcfsetup/install/files/lib/system/SingletonFactory.class.php
wcfsetup/install/files/lib/system/WCF.class.php
wcfsetup/install/files/lib/system/acl/ACLHandler.class.php
wcfsetup/install/files/lib/system/ad/AdHandler.class.php
wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php
wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php
wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php
wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php
wcfsetup/install/files/lib/system/category/CategoryHandler.class.php
wcfsetup/install/files/lib/system/cli/command/CLICommandHandler.class.php
wcfsetup/install/files/lib/system/clipboard/ClipboardEditorItem.class.php
wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php
wcfsetup/install/files/lib/system/comment/CommentHandler.class.php
wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php
wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php
wcfsetup/install/files/lib/system/dashboard/DashboardHandler.class.php
wcfsetup/install/files/lib/system/database/Database.class.php
wcfsetup/install/files/lib/system/database/editor/PostgreSQLDatabaseEditor.class.php
wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php
wcfsetup/install/files/lib/system/database/util/SQLParser.class.php
wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php
wcfsetup/install/files/lib/system/email/Email.class.php
wcfsetup/install/files/lib/system/email/Mailbox.class.php
wcfsetup/install/files/lib/system/email/mime/AttachmentMimePart.class.php
wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php
wcfsetup/install/files/lib/system/importer/ImportHandler.class.php
wcfsetup/install/files/lib/system/io/AtomicWriter.class.php
wcfsetup/install/files/lib/system/io/FTP.class.php
wcfsetup/install/files/lib/system/io/File.class.php
wcfsetup/install/files/lib/system/io/GZipFile.class.php
wcfsetup/install/files/lib/system/io/RemoteFile.class.php
wcfsetup/install/files/lib/system/io/Tar.class.php
wcfsetup/install/files/lib/system/io/TarWriter.class.php
wcfsetup/install/files/lib/system/io/Zip.class.php
wcfsetup/install/files/lib/system/label/LabelHandler.class.php
wcfsetup/install/files/lib/system/language/I18nHandler.class.php
wcfsetup/install/files/lib/system/language/LanguageServerProcessor.class.php
wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php
wcfsetup/install/files/lib/system/log/modification/ModificationLogHandler.class.php
wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php
wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php
wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueActivationManager.class.php
wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php
wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php
wcfsetup/install/files/lib/system/option/OptionHandler.class.php
wcfsetup/install/files/lib/system/package/PackageArchive.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php
wcfsetup/install/files/lib/system/package/plugin/ACLOptionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/SQLPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php
wcfsetup/install/files/lib/system/page/PageManager.class.php
wcfsetup/install/files/lib/system/poll/PollManager.class.php
wcfsetup/install/files/lib/system/recaptcha/RecaptchaHandler.class.php
wcfsetup/install/files/lib/system/recaptcha/RecaptchaHandlerV2.class.php
wcfsetup/install/files/lib/system/request/ControllerMap.class.php
wcfsetup/install/files/lib/system/request/LinkHandler.class.php
wcfsetup/install/files/lib/system/request/RequestHandler.class.php
wcfsetup/install/files/lib/system/request/Route.class.php
wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php
wcfsetup/install/files/lib/system/search/acp/ACPSearchHandler.class.php
wcfsetup/install/files/lib/system/search/acp/AbstractCategorizedACPSearchResultProvider.class.php
wcfsetup/install/files/lib/system/session/SessionHandler.class.php
wcfsetup/install/files/lib/system/setup/Installer.class.php
wcfsetup/install/files/lib/system/sitemap/SitemapHandler.class.php
wcfsetup/install/files/lib/system/style/StyleCompiler.class.php
wcfsetup/install/files/lib/system/style/StyleHandler.class.php
wcfsetup/install/files/lib/system/tagging/TagEngine.class.php
wcfsetup/install/files/lib/system/template/TemplateEngine.class.php
wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php
wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php
wcfsetup/install/files/lib/system/user/activity/event/UserActivityEventHandler.class.php
wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php
wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleContentHandler.class.php
wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php
wcfsetup/install/files/lib/system/user/object/watch/UserObjectWatchHandler.class.php
wcfsetup/install/files/lib/system/visitTracker/VisitTracker.class.php
wcfsetup/install/files/lib/util/ArrayUtil.class.php
wcfsetup/install/files/lib/util/ClassUtil.class.php
wcfsetup/install/files/lib/util/CronjobUtil.class.php
wcfsetup/install/files/lib/util/CryptoUtil.class.php
wcfsetup/install/files/lib/util/DateUtil.class.php
wcfsetup/install/files/lib/util/DirectoryUtil.class.php
wcfsetup/install/files/lib/util/FileReader.class.php
wcfsetup/install/files/lib/util/FileUtil.class.php
wcfsetup/install/files/lib/util/HTTPRequest.class.php
wcfsetup/install/files/lib/util/JSON.class.php
wcfsetup/install/files/lib/util/PasswordUtil.class.php
wcfsetup/install/files/lib/util/XML.class.php
wcfsetup/install/files/lib/util/XMLWriter.class.php

index 3610436b2ca3783919541dbea01f5819f9564bb6..c8e5ad088c7b554cc204a8557a5951ce91013a15 100644 (file)
@@ -203,6 +203,7 @@ function handleException(\Exception $e) {
  * @param      string          $message
  * @param      string          $filename
  * @param      integer         $lineNo
+ * @throws     SystemException
  */
 function handleError($errorNo, $message, $filename, $lineNo) {
        if (error_reporting() != 0) {
@@ -235,6 +236,7 @@ class BasicFileUtil {
         * Tries to find the temp folder.
         *
         * @return      string
+        * @throws      SystemException
         */
        public static function getTempFolder() {
                // use tmp folder in document root by default
@@ -302,6 +304,7 @@ class BasicFileUtil {
         * permissions and goes up until 0666 for files and 0777 for directories.
         *
         * @param       string          $filename
+        * @throws      SystemException
         */
        public static function makeWritable($filename) {
                if (!file_exists($filename)) {
@@ -385,6 +388,7 @@ class Tar {
         * archiveName must be tarball or gzipped tarball
         *
         * @param       string          $archiveName
+        * @throws      SystemException
         */
        public function __construct($archiveName) {
                if (!is_file($archiveName)) {
@@ -454,6 +458,7 @@ class Tar {
         *
         * @param       mixed   $fileIndex      index or name of the requested file
         * @return      array
+        * @throws      SystemException
         */
        public function getFileInfo($fileIndex) {
                if (!is_int($fileIndex)) {
@@ -525,7 +530,8 @@ class Tar {
         *
         * @param       mixed           $index          index or name of the requested file
         * @param       string          $destination
-        * @return      boolean $success
+        * @return      boolean
+        * @throws      SystemException
         */
        public function extract($index, $destination) {
                if (!$this->read) {
@@ -699,6 +705,7 @@ class File {
         *
         * @param       string          $filename
         * @param       string          $mode
+        * @throws      SystemException
         */
        public function __construct($filename, $mode = 'wb') {
                $this->filename = $filename;
@@ -715,6 +722,7 @@ class File {
         * @param       string          $function
         * @param       array           $arguments
         * @return      mixed
+        * @throws      SystemException
         */
        public function __call($function, $arguments) {
                if (function_exists('f' . $function)) {
@@ -749,6 +757,7 @@ class ZipFile extends File {
         *
         * @param       string          $filename
         * @param       string          $mode
+        * @throws      SystemException
         */
        public function __construct($filename, $mode = 'wb') {
                if (self::$gzopen64 === null) {
@@ -771,6 +780,7 @@ class ZipFile extends File {
         * @param       string          $function
         * @param       array           $arguments
         * @return      mixed
+        * @throws      SystemException
         */
        public function __call($function, $arguments) {
                if (self::$gzopen64 && function_exists('gz' . $function . '64')) {
index 0a5506d8e82f77cb88e8ab359391a7225aa3ddb4..b936ccb9ea87bdcead0650ce76b7f4dbfb23a01d 100755 (executable)
@@ -109,6 +109,7 @@ class PackageStartInstallForm extends AbstractForm {
         * Validates the upload package input.
         * 
         * @param       string          $filename
+        * @throws      UserInputException
         */
        protected function validateUploadPackage($filename = '') {
                $this->activeTabMenuItem = 'upload';
index 2259a87f859a5a9649134b21b843456633b520bd..d36091e5003241a41c8f7e46d2e66ab54257a2e3 100644 (file)
@@ -308,6 +308,7 @@ class UserAddForm extends UserOptionListForm {
         * Throws a UserInputException if the username is not unique or not valid.
         * 
         * @param       string          $username
+        * @throws      UserInputException
         */
        protected function validateUsername($username) {
                if (empty($username)) {
@@ -330,9 +331,10 @@ class UserAddForm extends UserOptionListForm {
         * 
         * @param       string          $email
         * @param       string          $confirmEmail
+        * @throws      UserInputException
         */
        protected function validateEmail($email, $confirmEmail) {
-               if (empty($email)) {    
+               if (empty($email)) {
                        throw new UserInputException('email');
                }
                
@@ -357,6 +359,7 @@ class UserAddForm extends UserOptionListForm {
         * 
         * @param       string          $password
         * @param       string          $confirmPassword
+        * @throws      UserInputException
         */
        protected function validatePassword($password, $confirmPassword) {
                if (empty($password)) {
index e09d5f1a087fe604015b94fed2edbfb8c3a4a9df..e906cc850f5d08f52489cbc54e989819d0a3fbb0 100644 (file)
@@ -152,6 +152,8 @@ class AJAXInvokeAction extends AbstractSecureAction {
         * Throws an previously catched exception while maintaing the propriate stacktrace.
         * 
         * @param       \Exception      $e
+        * @throws      AJAXException
+        * @throws      \Exception
         */
        protected function throwException(\Exception $e) {
                if ($this->inDebugMode) {
@@ -229,6 +231,7 @@ class AJAXInvokeAction extends AbstractSecureAction {
         * 
         * @param       array           $data
         * @return      AJAXInvokeAction
+        * @throws      SystemException
         */
        public static function debugCall(array $data) {
                // validate $data array
index 896ec8c841466dee140846fbb9a9d5610db0fa89..04e4bcd427080d4ef88ddfb4d73e5bc4fd741d82 100644 (file)
@@ -152,6 +152,8 @@ class MessageQuoteAction extends AJAXProxyAction {
         * Removes a list of quotes from storage and returns the remaining count.
         * 
         * @return      integer
+        * @throws      SystemException
+        * @throws      UserInputException
         */
        protected function remove() {
                if (empty($this->quoteIDs)) {
@@ -182,6 +184,7 @@ class MessageQuoteAction extends AJAXProxyAction {
         * Returns a list of full quotes by object ids for given object types.
         * 
         * @return      array<array>
+        * @throws      UserInputException
         */
        protected function getFullQuoteObjectIDs() {
                if (empty($this->objectTypes)) {
index f5afb7014fede002c54b1bb40ec90a2e2b14a9f7..2e593fe198a9ae21cdbf424e3151e955703b89cf 100644 (file)
@@ -108,6 +108,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID
         * @param       array<mixed>    $objects
         * @param       string          $action
         * @param       array           $parameters
+        * @throws      SystemException
         */
        public function __construct(array $objects, $action, array $parameters = array()) {
                // set class name
@@ -399,7 +400,8 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID
        /**
         * Returns a single object and throws an UserInputException if no or more than one object is given.
         * 
-        * @return      \wcf\data\DatabaseObject
+        * @return      DatabaseObject
+        * @throws      UserInputException
         */
        protected function getSingleObject() {
                if (empty($this->objects)) {
@@ -492,6 +494,8 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID
         * @param       string          $arrayIndex
         * @param       integer         $type
         * @param       integer         $structure
+        * @throws      SystemException
+        * @throws      UserInputException
         */
        protected function readValue($variableName, $allowEmpty, $arrayIndex, $type, $structure) {
                if ($arrayIndex) {
index 5c2c76ea69cb03396e796cda8268e8e6236f7ce6..4dbeb3d60f22e820c41d9b699760dbc511e428b1 100644 (file)
@@ -28,7 +28,8 @@ abstract class DatabaseObjectDecorator extends DatabaseObject {
        /**
         * Creates a new DatabaseObjectDecorator object.
         * 
-        * @param       \wcf\data\DatabaseObject                $object
+        * @param       DatabaseObject          $object
+        * @throws      SystemException
         */
        public function __construct(DatabaseObject $object) {
                if (empty(static::$baseClass)) {
@@ -76,6 +77,7 @@ abstract class DatabaseObjectDecorator extends DatabaseObject {
         * @param       string          $name
         * @param       array           $arguments
         * @return      mixed
+        * @throws      SystemException
         */
        public function __call($name, $arguments) {
                if (!method_exists($this->object, $name) && !($this->object instanceof DatabaseObjectDecorator)) {
index d006a0baa329bd12eb46f8a4766e0d043855b342..5d00d6b727ececb7b55eb2431ca0e732497d9520 100644 (file)
@@ -29,6 +29,7 @@ class ProcessibleDatabaseObject extends DatabaseObject {
         * Returns the processor this database object.
         * 
         * @return      object
+        * @throws      SystemException
         */
        public function getProcessor() {
                if ($this->processor === null) {
index 3ee64cdcae22efe9f9050130281d5f6bb328786b..476f22ff2dd0aee1b093dbabb06637d4db66fe1c 100644 (file)
@@ -54,6 +54,7 @@ trait TMultiCategoryObject {
         * Returns the categories of the object.
         *
         * @return      AbstractDecoratedCategory[]
+        * @throws      SystemException
         */
        public function getCategories() {
                if ($this->categories === null) {
index 3d781e9aa91e2adb6ddb18cda86303bdca7346ae..a8ba50f5852ac605ba73bd63eef6ce89c5c89d2d 100644 (file)
@@ -99,6 +99,7 @@ class Application extends DatabaseObject {
         * 
         * @param       string          $abbreviation
         * @return      string
+        * @throws      SystemException
         */
        public static function getDirectory($abbreviation) {
                if (static::$directories === null) {
index 6fab3450b1d8c8c69c177b351435f46db3cc96c6..5bd506b68ea237f3e2ccbe35f4cfca04a68b755e 100644 (file)
@@ -41,6 +41,7 @@ class MessagePreviewAction extends BBCodeAction {
         * Returns a rendered message preview.
         * 
         * @return      array
+        * @throws      UserInputException
         */
        public function getMessagePreview() {
                // get options
index a23a3d4c10a0937fedeaf80433bb253c031e954c..e40d92cf7b9666c0e838a173b29aa49e90fb1519 100644 (file)
@@ -63,6 +63,7 @@ class CategoryNodeTree implements \IteratorAggregate {
         * @param       integer                 $parentCategoryID
         * @param       boolean                 $includeDisabledCategories
         * @param       integer[]               $excludedCategoryIDs
+        * @throws      SystemException
         */
        public function __construct($objectType, $parentCategoryID = 0, $includeDisabledCategories = false, array $excludedCategoryIDs = []) {
                $this->objectType = $objectType;
index ef1255bd39fa2f1199c2da7f61a706e495b58b9e..d1f090a27ea5acec098d6ba12e55f2fc5bf28cd1 100644 (file)
@@ -618,6 +618,7 @@ class CommentAction extends AbstractDatabaseObjectAction {
         * them enter a username and solving a captcha.
         * 
         * @return      array
+        * @throws      SystemException
         */
        public function getGuestDialog() {
                $captchaObjectType = null; 
@@ -699,6 +700,7 @@ class CommentAction extends AbstractDatabaseObjectAction {
         * Validates object type id parameter.
         * 
         * @return      ObjectType
+        * @throws      UserInputException
         */
        protected function validateObjectType() {
                $this->readInteger('objectTypeID', false, 'data');
index de04c4444235046e9d82dee7f67d1aed5fe721ee..8d525f31e5861ffe02c43a3dde93de4c2ebc9263 100644 (file)
@@ -303,8 +303,9 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje
        /**
         * Takes an XML object and returns the specific language code.
         * 
-        * @param       \wcf\util\XML   $xml
+        * @param       XML     $xml
         * @return      string
+        * @throws      SystemException
         */
        public static function readLanguageCodeFromXML(XML $xml) {
                $rootNode = $xml->xpath()->query('/ns:language')->item(0);
@@ -321,8 +322,9 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje
        /**
         * Takes an XML object and returns the specific language name.
         * 
-        * @param       \wcf\util\XML   $xml
+        * @param       XML     $xml
         * @return      string          language name
+        * @throws      SystemException
         */
        public static function readLanguageNameFromXML(XML $xml) {
                $rootNode = $xml->xpath()->query('/ns:language')->item(0);
@@ -339,8 +341,9 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje
        /**
         * Takes an XML object and returns the specific country code.
         * 
-        * @param       \wcf\util\XML   $xml
+        * @param       XML     $xml
         * @return      string          country code
+        * @throws      SystemException
         */
        public static function readCountryCodeFromXML(XML $xml) {
                $rootNode = $xml->xpath()->query('/ns:language')->item(0);
index 5e82edccb56993451259e0356ff2ce022a01d4e2..1db0680589c2a0ec0c70776bb3ca0966f2256a2a 100644 (file)
@@ -57,6 +57,7 @@ class ViewableMedia extends DatabaseObjectDecorator {
         * 
         * @param       string          $size           thumbnail size
         * @return      string
+        * @throws      SystemException
         */
        public function getThumbnailTag($size = '') {
                if (!isset(Media::getThumbnailSizes()[$size])) {
index 9b69b0b70d57f52f31920cfe3637e54388fd478e..eb5488967d72d2850bef24789ac3e6f10f7e5f04 100644 (file)
@@ -148,6 +148,7 @@ class MenuItem extends DatabaseObject {
         * TODO: Comment
         * 
         * @return      IMenuPageHandler|null
+        * @throws      SystemException
         */
        protected function getMenuPageHandler() {
                $page = $this->getPage();
index 2bcfbb524e57eb16b2f97870ce8ffd418dbf0ca5..cbe01d7c1d51f60cef7503a71c54786bf3faace1 100644 (file)
@@ -77,7 +77,8 @@ class PackageAction extends AbstractDatabaseObjectAction {
        /**
         * Searches for purchased items in the WoltLab Plugin-Store.
         * 
-        * @return      array<string>
+        * @return      string[]
+        * @throws      SystemException
         */
        public function searchForPurchasedItems() {
                if (!RemoteFile::supportsSSL()) {
index a35e9133271472d528e77f255c4b9578d580c2fb..c56bbb671655437b7a1185db20c8a7a008d95e79 100644 (file)
@@ -120,7 +120,6 @@ class Page extends DatabaseObject {
         * 
         * @param       integer         $languageID     language id or `null` if there are no localized versions
         * @return      string[]        page content data
-        * @throws      \wcf\system\database\DatabaseException
         */
        public function getPageContentByLanguage($languageID = null) {
                $conditions = new PreparedStatementConditionBuilder();
@@ -207,7 +206,7 @@ class Page extends DatabaseObject {
        /**
         * Sets the current page as landing page.
         * 
-        * @throws      SystemException
+        * @throws      SystemException
         */
        public function setAsLandingPage() {
                if ($this->requireObjectID) {
index acb86b6e795da873c25a2a674668d42ce3c0f706..498eef4b8c21e782c27599f3292172dd4f9b4f03 100644 (file)
@@ -48,6 +48,7 @@ class Sitemap extends DatabaseObject {
         * Returns parsed template for current sitemap.
         * 
         * @return      string
+        * @throws      SystemException
         */
        public function getTemplate() {
                if ($this->sitemapObj === null) {
index b53a11bb90fc63842eb4358b3ed7f53d655c6030..34cbd7d476d0ed94217ef632e27e7d163a77c248 100644 (file)
@@ -123,8 +123,9 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
        /**
         * Reads the data of a style exchange format file.
         * 
-        * @param       \wcf\system\io\Tar      $tar
+        * @param       Tar     $tar
         * @return      array
+        * @throws      SystemException
         */
        public static function readStyleData(Tar $tar) {
                // search style.xml
index 3d95d60d4e36a7f0b7143f2628b7814de6e335ac..5d237cf103d3ec85f59ebe25038eb8c9344243ad 100644 (file)
@@ -68,6 +68,8 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio
         * Validates accessible groups.
         * 
         * @param       boolean         $ignoreOwnUser
+        * @throws      PermissionDeniedException
+        * @throws      UserInputException
         */
        protected function __validateAccessibleGroups($ignoreOwnUser = true) {
                if ($ignoreOwnUser) {
index 9e99710860c0a6c4c553c3a17aa19a63528b970d..d134de5b5e0c7beb35957f9df474f0687643a927 100644 (file)
@@ -274,6 +274,7 @@ class UserAvatarAction extends AbstractDatabaseObjectAction {
         * 
         * @param       string          $filename
         * @return      string
+        * @throws      UserInputException
         */
        protected function enforceDimensions($filename) {
                $imageData = getimagesize($filename);
index dac1aa58ba44a2ecb8af36a98269b319e95f9741..6e807890c598d49778f4c82c690a72412cc2cf67 100644 (file)
@@ -122,7 +122,8 @@ class UserGroup extends DatabaseObject {
         * Returns unique group by given type. Only works for the default user groups.
         * 
         * @param       integer         $type
-        * @return      \wcf\data\user\group\UserGroup
+        * @return      UserGroup
+        * @throws      SystemException
         */
        public static function getGroupByType($type) {
                if ($type != self::EVERYONE && $type != self::GUESTS && $type != self::USERS) {
index 2b95e2932a5e6b56229040512731e9f00d111651..b325fb47e1ee27933fd1d8bc406961924a2a8284 100644 (file)
@@ -116,6 +116,7 @@ class UserGroupEditor extends DatabaseObjectEditor implements IEditableCachedObj
         * 
         * @param       integer         $groupID        this group is added or deleted in the value
         * @param       boolean         $delete         flag for group deletion
+        * @throws      SystemException
         */
        protected static function updateAccessibleGroups($groupID, $delete = false) {
                $sql = "SELECT  optionID
index 6de8fe56c9eaa0456a7d396544dfb84d09457610..49d2d46a02c0c70268456cc5742b5590e3b7dcee 100644 (file)
@@ -63,6 +63,7 @@ class ViewableUserOption extends DatabaseObjectDecorator {
         * Returns the output object for current user option.
         * 
         * @return      \wcf\system\option\user\IUserOptionOutput
+        * @throws      SystemException
         */
        public function getOutputObject() {
                if (!isset(self::$outputObjects[$this->outputClass])) {
index ae5d4cf1ad39ebc18e3ccec23e9ca48ceb5c9174..02399a0cdcc55ddc264cfeab497dd5923ce88875 100644 (file)
@@ -58,6 +58,7 @@ class UserProfileMenuItem extends DatabaseObject {
         * Returns the content manager for this menu item.
         * 
         * @return      IUserProfileMenuContent
+        * @throws      SystemException
         */
        public function getContentManager() {
                if ($this->contentManager === null) {
index 80537472aabd4a8721fb68ce0455232812e83e86..c47dbda0aade02cde728ead0de40b4bb79d48044 100644 (file)
@@ -23,6 +23,7 @@ final class Callback {
         * Creates new instance of Callback.
         * 
         * @param       callback        $callback
+        * @throws      SystemException
         */
        public function __construct($callback) {
                if (!is_callable($callback)) {
index c85485891f55bae05559f42a1fbe24ec4d74bac5..8ebc8c7e0438a724bebbc0a1531f04be7d60f9fb 100644 (file)
@@ -133,6 +133,7 @@ final class Regex {
         * 
         * @param       string          $regex
         * @param       integer         $modifier
+        * @throws      SystemException
         */
        public function __construct($regex, $modifier = self::MODIFIER_NONE) {
                // escape delimiter
@@ -246,6 +247,7 @@ final class Regex {
         * @param       mixed           $result
         * @param       string          $method
         * @return      mixed
+        * @throws      SystemException
         */
        private function checkResult($result, $method = '') {
                if ($result === false || $result === null) {
index 6c57139c0fe130181da734024b5b7c1a23e0638d..a8afb3bb68a1610ac298ff996b7920395107309f 100644 (file)
@@ -48,6 +48,7 @@ abstract class SingletonFactory {
         * Returns an unique instance of current child class.
         *
         * @return      static
+        * @throws      SystemException
         */
        public static final function getInstance() {
                $className = get_called_class();
index fd504c9349e5cd8c34d246b16f90dafc0b6e2344..5fa4dbbbdcb3da22030438a89b3712187e15b4a4 100644 (file)
@@ -279,6 +279,7 @@ class WCF {
         * @param       string          $message
         * @param       string          $file
         * @param       integer         $line
+        * @throws      ErrorException
         */
        public static final function handleError($severity, $message, $file, $line) {
                // this is neccessary for the shut-up operator
@@ -496,9 +497,10 @@ class WCF {
        /**
         * Loads an application.
         * 
-        * @param       \wcf\data\application\Application               $application
-        * @param       boolean                                         $isDependentApplication
-        * @return      \wcf\system\application\IApplication
+        * @param       Application             $application
+        * @param       boolean                 $isDependentApplication
+        * @return      IApplication
+        * @throws      SystemException
         */
        protected function loadApplication(Application $application, $isDependentApplication = false) {
                $applicationObject = null;
@@ -626,6 +628,7 @@ class WCF {
         * 
         * @param       string          $name
         * @return      mixed           value
+        * @throws      SystemException
         */
        public function __get($name) {
                $method = 'get'.ucfirst($name);
@@ -697,6 +700,7 @@ class WCF {
         * @param       string          $name
         * @param       array           $arguments
         * @return      object
+        * @throws      SystemException
         */
        public static final function __callStatic($name, array $arguments) {
                $className = preg_replace('~^get~', '', $name);
index 0c48124ebbbec731da2b5ecc0fe34d23c522da2c..e478d395e5d64e2be4125803e4726cf1d22044e4 100644 (file)
@@ -126,6 +126,7 @@ class ACLHandler extends SingletonFactory {
         * 
         * @param       string          $objectType
         * @return      integer
+        * @throws      SystemException
         */
        public function getObjectTypeID($objectType) {
                if (!isset($this->availableObjectTypes[$objectType])) {
index 16a773f1d7fcdc633e7fc3b575fcebf113053861..94045a6c18da144e51fd1f99b53efd9d1cb566a3 100644 (file)
@@ -34,6 +34,7 @@ class AdHandler extends SingletonFactory {
         * 
         * @param       string          $adLocation
         * @return      string
+        * @throws      SystemException
         */
        public function getAds($adLocation) {
                if (!isset($this->objectTypes[$adLocation])) {
index a1b2616caeace514645dc767bbec0047bbc1786e..a94d5acccf1716981609dd6103a71e00ecb880bc 100644 (file)
@@ -60,6 +60,7 @@ class AttachmentHandler implements \Countable {
         * @param       string          $objectType
         * @param       integer         $objectID
         * @param       string          $tmpHash
+        * @throws      SystemException
         */
        public function __construct($objectType, $objectID, $tmpHash = '', $parentObjectID = 0) {
                if (!$objectID && !$tmpHash) {
index c08579f0f751ff8a91713e04a7325aa4fdadb9bc..067df51e14b187b3d9414e90c8f4319fa857a21e 100644 (file)
@@ -48,6 +48,7 @@ class BackgroundQueueHandler extends SingletonFactory {
         * 
         * @param       mixed   $jobs   Either an instance of \wcf\system\background\job\AbstractBackgroundJob or an array of these
         * @param       int     $time   Earliest time to consider the job for execution.
+        * @throws      SystemException
         */
        public function enqueueAt($jobs, $time) {
                if ($time < TIME_NOW) {
index 775d319020d4b05d29beec79de4d9f3ed1687a23..63d5636363250ab183471e891afafc93643b6d8f 100644 (file)
@@ -84,8 +84,9 @@ class UserGroupPermissionCacheBuilder extends AbstractCacheBuilder {
        /**
         * Returns an object of the requested group option type.
         * 
-        * @param       string                  $type
+        * @param       string          $type
         * @return      \wcf\system\option\user\group\IUserGroupOptionType
+        * @throws      SystemException
         */
        protected function getTypeObject($type) {
                if (!isset($this->typeObjects[$type])) {
index 7fbef862bbd8bf1125da43a90d8eff13f40fa1fa..f4b24ec83e2f409856bee012f07b69d2dad0f548 100644 (file)
@@ -147,6 +147,7 @@ class DiskCacheSource implements ICacheSource {
         * @param       string          $cacheName
         * @param       string          $filename
         * @return      mixed
+        * @throws      SystemException
         */
        protected function readCache($cacheName, $filename) {
                // get file contents
index 2b4023bfd5ef21534ffcdb51f5d7bea47934870b..bddc8fe46a2ddcad6670a3c8d8ce655ba227dc05 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\category;
+use wcf\data\category\Category;
 use wcf\data\object\type\ObjectTypeCache;
 use wcf\system\cache\builder\CategoryCacheBuilder;
 use wcf\system\exception\SystemException;
@@ -84,7 +85,8 @@ class CategoryHandler extends SingletonFactory {
         * 
         * @param       integer         $categoryID
         * @param       integer         $objectTypeID
-        * @return      array<\wcf\data\category\Category>
+        * @return      Category[]
+        * @throws      SystemException
         */
        public function getChildCategories($categoryID, $objectTypeID = null) {
                if (!$categoryID && $objectTypeID === null) {
index 7e642c04822eba2d69846a6b8ebe006dee7602be..d19536a02dcc8cf547d3171e5a57245cb8197579 100644 (file)
@@ -58,6 +58,7 @@ class CLICommandHandler {
         * 
         * @param       string          $line
         * @return      \wcf\system\cli\command\ICLICommand
+        * @throws      IllegalLinkException
         */
        public static function getCommand($line) {
                list($command, $parameters) = explode(' ', $line.' ', 2);
@@ -72,6 +73,7 @@ class CLICommandHandler {
         * 
         * @param       string          $line
         * @return      string
+        * @throws      IllegalLinkException
         */
        public static function getCommandName($line) {
                list($command, $parameters) = explode(' ', $line.' ', 2);
index 3c23ba312eb30b3a99770e7219d898e80089bdf9..2418fc210865a81ff0f5a44578e925f17a21e65f 100644 (file)
@@ -78,6 +78,7 @@ final class ClipboardEditorItem {
         * 
         * @param       string          $name
         * @param       mixed           $value
+        * @throws      SystemException
         */
        public function addInternalData($name, $value) {
                if (!preg_match('~^[a-zA-Z]+$~', $name)) {
@@ -96,6 +97,7 @@ final class ClipboardEditorItem {
         * 
         * @param       string          $name
         * @param       mixed           $value
+        * @throws      SystemException
         */
        public function addParameter($name, $value) {
                if (!preg_match('~^[a-zA-Z]+$~', $name)) {
@@ -113,6 +115,7 @@ final class ClipboardEditorItem {
         * Sets item name.
         * 
         * @param       string          $name
+        * @throws      SystemException
         */
        public function setName($name) {
                if (!preg_match('~^[a-zA-Z0-9\.-]+$~', $name)) {
index 1ee0b86303dc5e46db1ccc5cfa7fd2c763e68801..e42061f246c83e17fb09d84fb0f54bb40023fc4d 100644 (file)
@@ -180,6 +180,7 @@ class ClipboardHandler extends SingletonFactory {
         * Loads a list of marked items grouped by type name.
         * 
         * @param       integer         $objectTypeID
+        * @throws      SystemException
         */
        protected function loadMarkedItems($objectTypeID = null) {
                if ($this->markedItems === null) {
@@ -290,6 +291,7 @@ class ClipboardHandler extends SingletonFactory {
         * @param       string          $page
         * @param       integer         $pageObjectID
         * @return      array<array>
+        * @throws      SystemException
         */
        public function getEditorItems($page, $pageObjectID) {
                $this->pageObjectID = 0;
index ea2101d2b4de630e715fc01740894f7c311937eb..49c71fca292405cbdc6539f03995eb8c11a43dc3 100644 (file)
@@ -82,6 +82,7 @@ class CommentHandler extends SingletonFactory {
         * 
         * @param       string          $objectType
         * @return      ICommentManager
+        * @throws      SystemException
         */
        public function getCommentManager($objectType) {
                $objectTypeID = $this->getObjectTypeID($objectType);
@@ -90,7 +91,6 @@ class CommentHandler extends SingletonFactory {
                }
                
                return $this->getObjectType($objectTypeID)->getProcessor();
-               
        }
        
        /**
@@ -234,6 +234,7 @@ class CommentHandler extends SingletonFactory {
         * Enforces the censorship.
         * 
         * @param       string          $text
+        * @throws      UserInputException
         */
        public static function enforceCensorship($text) {
                // search for censored words
index a18348b00138a53408bf7ac306306c072845981d..97f3543b425253025f7360cebc7784011821d875 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\condition;
+use wcf\data\condition\Condition;
 use wcf\data\condition\ConditionAction;
 use wcf\data\condition\ConditionList;
 use wcf\data\object\type\ObjectTypeCache;
@@ -51,8 +52,9 @@ class ConditionHandler extends SingletonFactory {
        /**
         * Deletes all conditions of the objects with the given ids.
         * 
-        * @param       string                  $definitionName
-        * @param       array<integer>          $objectIDs
+        * @param       string          $definitionName
+        * @param       integer[]       $objectIDs
+        * @throws      SystemException
         */
        public function deleteConditions($definitionName, array $objectIDs) {
                if (empty($objectIDs)) return;
@@ -87,7 +89,8 @@ class ConditionHandler extends SingletonFactory {
         * 
         * @param       string          $definitionName
         * @param       integer         $objectID
-        * @return      array<\wcf\data\condition\Condition>
+        * @return      Condition[]
+        * @throws      SystemException
         */
        public function getConditions($definitionName, $objectID) {
                // validate definition
index b6c8be1a6e48f0d83427cbcaa079ada8c657cd6a..87ff2c92e1c331c97c49c38936f412e142101e48 100644 (file)
@@ -162,8 +162,9 @@ class CronjobScheduler extends SingletonFactory {
        /**
         * Executes a cronjob.
         * 
-        * @param       \wcf\data\cronjob\CronjobEditor         $cronjobEditor
-        * @param       \wcf\data\cronjob\log\CronjobLogEditor  $logEditor
+        * @param       CronjobEditor           $cronjobEditor
+        * @param       CronjobLogEditor        $logEditor
+        * @throws      SystemException
         */
        protected function executeCronjob(CronjobEditor $cronjobEditor, CronjobLogEditor $logEditor) {
                $className = $cronjobEditor->className;
index 5cd036b6f7f453f04b25559ebab92541f5ff3eaf..1c1656abeeef9cf6568728976fd5f500cac02839 100644 (file)
@@ -44,7 +44,8 @@ class DashboardHandler extends SingletonFactory {
         * Loads the active dashboard boxes for the given object type and page.
         * 
         * @param       string          $objectType
-        * @param       \wcf\page\IPage $page
+        * @param       IPage           $page
+        * @throws      SystemException
         */
        public function loadBoxes($objectType, IPage $page) {
                $objectTypeObj = ObjectTypeCache::getInstance()->getObjectTypeByName('com.woltlab.wcf.user.dashboardContainer', $objectType);
@@ -97,7 +98,8 @@ class DashboardHandler extends SingletonFactory {
         * all boxes will be assigned as disabled for given object type.
         * 
         * @param       string          $objectType
-        * @param       array<names>    $enableBoxNames
+        * @param       string[]        $enableBoxNames
+        * @throws      SystemException
         */
        public static function setDefaultValues($objectType, array $enableBoxNames = array()) {
                $objectTypeID = 0;
index bd4913ca5bd42cd30bd63ba483977212183fcb6b..cef32f6d9256802b868b4a04488a5847100a8cee 100644 (file)
@@ -121,6 +121,7 @@ abstract class Database {
         * @param       string          $table
         * @param       string          $field
         * @return      integer
+        * @throws      DatabaseException
         */
        public function getInsertID($table, $field) {
                try {
@@ -135,6 +136,7 @@ abstract class Database {
         * Initiates a transaction.
         * 
         * @return      boolean         true on success
+        * @throws      DatabaseTransactionException
         */
        public function beginTransaction() {
                try {
@@ -161,6 +163,7 @@ abstract class Database {
         * Commits a transaction and returns true if the transaction was successfull.
         * 
         * @return      boolean
+        * @throws      DatabaseTransactionException
         */
        public function commitTransaction() {
                if ($this->activeTransactions === 0) return false;
@@ -190,6 +193,7 @@ abstract class Database {
         * Rolls back a transaction and returns true if the rollback was successfull.
         * 
         * @return      boolean
+        * @throws      DatabaseTransactionException
         */
        public function rollBackTransaction() {
                if ($this->activeTransactions === 0) return false;
@@ -220,7 +224,8 @@ abstract class Database {
         * @param       string                  $statement
         * @param       integer                 $limit
         * @param       integer                 $offset
-        * @return      \wcf\system\database\statement\PreparedStatement
+        * @return      PreparedStatement
+        * @throws      DatabaseQueryException
         */
        public function prepareStatement($statement, $limit = 0, $offset = 0) {
                $statement = $this->handleLimitParameter($statement, $limit, $offset);
index 487bba992cc6be5e5834c1bc46de3c3f8a1ec62b..16e6124f791064e7f6d6522b9753f1f12dcdcbb8 100644 (file)
@@ -85,6 +85,7 @@ class PostgreSQLDatabaseEditor extends DatabaseEditor {
         * @param       string          $tableName
         * @param       string          $columnName
         * @return      array
+        * @throws      DatabaseException
         */
        protected function getColumnData($tableName, $columnName) {
                $sql = "SELECT  pg_catalog.FORMAT_TYPE(atttypid, atttypmod) AS type, attnotnull AS notNull, atthasdef AS default
@@ -386,6 +387,7 @@ class PostgreSQLDatabaseEditor extends DatabaseEditor {
         * 
         * @param       string          $mySQLType
         * @return      string
+        * @throws      DatabaseException
         */
        protected function getColumnType($mySQLType) {
                switch ($mySQLType) {
index 17a9e337a2f13d0b6b5ba8ca97eca7a33a9a31a2..ff509b0502346b90abfb907371f126101a41ad01 100644 (file)
@@ -61,6 +61,7 @@ class PreparedStatement {
         * @param       string          $name
         * @param       array           $arguments
         * @return      mixed
+        * @throws      SystemException
         */
        public function __call($name, $arguments) {
                if (!method_exists($this->pdoStatement, $name)) {
@@ -79,6 +80,7 @@ class PreparedStatement {
         * Executes a prepared statement.
         * 
         * @param       array           $parameters
+        * @throws      DatabaseQueryExecutionException
         */
        public function execute(array $parameters = array()) {
                $this->parameters = $parameters;
@@ -186,6 +188,7 @@ class PreparedStatement {
         * Counts number of affected rows by the last sql statement (INSERT, UPDATE or DELETE).
         * 
         * @return      integer         number of affected rows
+        * @throws      DatabaseQueryException
         */
        public function getAffectedRows() {
                try {
index c337055a5deb2b51f58799ba47ac0b7d573b14de..aa9681fd0341c9bb14350c486ef7a0aa4df93c46 100644 (file)
@@ -56,6 +56,7 @@ class SQLParser {
         * 
         * @param       string          $statement
         * @param       string          $query
+        * @throws      SystemException
         */
        protected function executeStatement($statement, $query) {
                switch ($statement) {
index ba240297e62b4af28db9eaa9f0d5f706193b98de..2a2cc93db03663d4d1c4b1370ba9d2e59e4249f4 100644 (file)
@@ -36,6 +36,7 @@ class EditHistoryManager extends SingletonFactory {
         * 
         * @param       string          $objectType
         * @return      integer
+        * @throws      SystemException
         */
        public function getObjectTypeID($objectType) {
                if (!isset($this->availableObjectTypes[$objectType])) {
index 463766867f58c6663749f7a091cac493d0c7d4bc..00b20703802bdca4d7e7613ee98c5541299102e3 100644 (file)
@@ -177,7 +177,8 @@ class Email {
        /**
         * Sets the part left of the at sign (@) in the email's 'Message-Id'.
         * 
-        * @param       string  $messageID
+        * @param       string          $messageID
+        * @throws      SystemException
         */
        public function setMessageID($messageID = null) {
                if ($messageID === null) {
@@ -212,7 +213,8 @@ class Email {
        /**
         * Adds a message id to the email's 'In-Reply-To'.
         * 
-        * @param       string  $messageID
+        * @param       string          $messageID
+        * @throws      SystemException
         */
        public function addInReplyTo($messageID) {
                if (!preg_match('(^'.EmailGrammar::getGrammar('msg-id').'$)', $messageID)) {
@@ -243,7 +245,8 @@ class Email {
        /**
         * Adds a message id to the email's 'References'.
         * 
-        * @param       string  $messageID
+        * @param       string          $messageID
+        * @throws      SystemException
         */
        public function addReferences($messageID) {
                if (!preg_match('(^'.EmailGrammar::getGrammar('msg-id').'$)', $messageID)) {
@@ -320,8 +323,9 @@ class Email {
        /**
         * Adds a recipient to this email.
         * 
-        * @param       \wcf\system\email\Mailbox       $recipient
-        * @param       string                          $type           One of 'to', 'cc', 'bcc'
+        * @param       Mailbox         $recipient
+        * @param       string          $type           One of 'to', 'cc', 'bcc'
+        * @throws      SystemException
         */
        public function addRecipient(Mailbox $recipient, $type = 'to') {
                switch ($type) {
@@ -357,8 +361,9 @@ class Email {
        /**
         * Adds a custom X-* header to the email.
         * 
-        * @param       string  $header
-        * @param       string  $value
+        * @param       string          $header
+        * @param       string          $value
+        * @throws      SystemException
         */
        public function addHeader($header, $value) {
                $header = mb_strtolower($header);
@@ -375,8 +380,9 @@ class Email {
         * The given priority determines the ordering within the Email. A higher priority
         * mime part will be further down the email (see RFC 2046, 5.1.4).
         * 
-        * @param       \wcf\system\email\mime\AbstractMimePart $part
-        * @param       integer                                 $priority
+        * @param       AbstractMimePart        $part
+        * @param       integer                 $priority
+        * @throws      SystemException
         */
        public function addMimePart(AbstractMimePart $part, $priority = 1000) {
                foreach ($part->getAdditionalHeaders() as $header) {
@@ -430,6 +436,7 @@ class Email {
         *       headers will fail.
         * 
         * @return      array
+        * @throws      SystemException
         */
        public function getHeaders() {
                $headers = [ ];
index 009f4d919f7bc7bb81bec9c1bc746bca2b919fde..61cf6bc3ca82422e75576c0f84173386ca699c35 100644 (file)
@@ -31,9 +31,10 @@ class Mailbox {
        /**
         * Creates a new Mailbox.
         * 
-        * @param       string                          $address        email address of this mailbox
-        * @param       string                          $name           human readable name of this mailbox (or null)
-        * @param       \wcf\data\language\Language     $language       Language to use for localization (or null for the default language)
+        * @param       string          $address        email address of this mailbox
+        * @param       string          $name           human readable name of this mailbox (or null)
+        * @param       Language        $language       Language to use for localization (or null for the default language)
+        * @throws      SystemException
         */
        public function __construct($address, $name = null, Language $language = null) {
                if (!preg_match('(^'.EmailGrammar::getGrammar('addr-spec').'$)', $address)) {
index 7f65c95a7183dba3e706c74f19e3fd3b10409f0f..acae82d59ac38f686ca3993cef945c4bb8a91ea2 100644 (file)
@@ -46,6 +46,7 @@ class AttachmentMimePart extends AbstractMimePart {
         * @param       string  $path           Path to read the file from.
         * @param       string  $filename       Filename to provide in the email or null to use the $path's basename.
         * @param       string  $mimeType       Mime type to provide in the email or null to guess the mime type.
+        * @throws      SystemException
         */
        public function __construct($path, $filename = null, $mimeType = null) {
                if (!is_file($path) || !is_readable($path)) {
index 260584654b23710c6b3ca77e6dd40fe70bed1e24..f59f0b337bcdb9220091e950fb14332a587bda7b 100644 (file)
@@ -83,6 +83,7 @@ class SmtpEmailTransport implements EmailTransport {
         * @param       string  $username       username to use for authentication
         * @param       string  $password       corresponding password
         * @param       string  $starttls       one of 'none', 'may' and 'encrypt'
+        * @throws      SystemException
         */
        public function __construct($host = MAIL_SMTP_HOST, $port = MAIL_SMTP_PORT, $username = MAIL_SMTP_USER, $password = MAIL_SMTP_PASSWORD, $starttls = MAIL_SMTP_STARTTLS) {
                $this->host = $host;
@@ -112,8 +113,10 @@ class SmtpEmailTransport implements EmailTransport {
         * Reads a server reply and validates it against the given expected status codes.
         * Returns a tuple [ status code, reply text ].
         * 
-        * @param       array<integer>          $expectedCodes
+        * @param       integer[]       $expectedCodes
         * @return      array
+        * @throws      PermanentFailure
+        * @throws      TransientFailure
         */
        protected function read(array $expectedCodes) {
                $code = null;
@@ -306,8 +309,11 @@ class SmtpEmailTransport implements EmailTransport {
        /**
         * Delivers the given email using SMTP.
         * 
-        * @param       \wcf\system\email\Email         $email
-        * @param       \wcf\system\email\Mailbox       $envelopeTo
+        * @param       Email           $email
+        * @param       Mailbox         $envelopeTo
+        * @throws      \Exception
+        * @throws      PermanentFailure
+        * @throws      SystemException
         */
        public function deliver(Email $email, Mailbox $envelopeTo) {
                // delivery is locked
index 4b78ad19330881cc2d8504e3641d2f7e468ab177..40de8e9665dda055f0ccc3ddb6effe3bc080e1cc 100644 (file)
@@ -63,10 +63,11 @@ class ImportHandler extends SingletonFactory implements IAJAXInvokeAction {
        }
        
        /**
-        * Gets a data importer.
+        * Returns a data importer.
         * 
         * @param       string          $type
-        * @return      \wcf\system\importer\IImporter
+        * @return      IImporter
+        * @throws      SystemException
         */
        public function getImporter($type) {
                if (!isset($this->importers[$type])) {
index af514101df62889cfb8550537f741233e1462508..7939f99e99c2a22275136146cb8ef154b60720ca 100644 (file)
@@ -37,6 +37,7 @@ class AtomicWriter extends File {
         * Opens a new file. The file is always opened in binary mode.
         * 
         * @param       string          $filename
+        * @throws      SystemException
         */
        public function __construct($filename) {
                $this->targetFilename = $filename;
index 52b0b6d53af725974658381b3d27669fe5aa443c..59e2c5f3021865e265bfb51b15be63ad2034efdd 100644 (file)
@@ -25,6 +25,7 @@ class FTP {
         * @param       string          $host
         * @param       integer         $port
         * @param       integer         $timeout
+        * @throws      SystemException
         */
        public function __construct($host = 'localhost', $port = 21, $timeout = 30) {
                $this->resource = ftp_connect($host, $port, $timeout);
@@ -38,6 +39,7 @@ class FTP {
         * 
         * @param       string          $function
         * @param       array           $arguments
+        * @throws      SystemException
         */
        public function __call($function, $arguments) {
                array_unshift($arguments, $this->resource);
index d338b940eceba47ba7e34e9c364a09c73fb98658..5609f793185529a924edbfec4d6b55952cfc69b6 100644 (file)
@@ -42,6 +42,7 @@ class File {
         * @param       string          $filename
         * @param       string          $mode
         * @param       array           $options
+        * @throws      SystemException
         */
        public function __construct($filename, $mode = 'wb', $options = array()) {
                $this->filename = $filename;
@@ -63,6 +64,7 @@ class File {
         * 
         * @param       string          $function
         * @param       array           $arguments
+        * @throws      SystemException
         */
        public function __call($function, $arguments) {
                if (function_exists('f' . $function)) {
index a7e361d3cc0170ddb9e85bfbdc980de600b2f463..9af6f24f8136ae491faa4ce9a4c0ade9ed7f3be6 100644 (file)
@@ -25,6 +25,7 @@ class GZipFile extends File {
         * 
         * @param       string          $filename
         * @param       string          $mode
+        * @throws      SystemException
         */
        public function __construct($filename, $mode = 'wb') {
                if (self::$gzopen64 === null) {
@@ -43,6 +44,7 @@ class GZipFile extends File {
         * 
         * @param       string          $function
         * @param       array           $arguments
+        * @throws      SystemException
         */
        public function __call($function, $arguments) {
                if (self::$gzopen64 && function_exists('gz' . $function . '64')) {
index 2477f8f717dea143671129bbe399f31af4549548..92e34c275f73ea3e0806148e36bdb2bc3efa33f2 100644 (file)
@@ -50,6 +50,7 @@ class RemoteFile extends File {
         * @param       integer         $port
         * @param       integer         $timeout
         * @param       array           $options
+        * @throws      SystemException
         */
        public function __construct($host, $port, $timeout = 30, $options = array()) {
                $this->host = $host;
index 4953a666d70d0e5705b0e14cdc9fe2dbc6c1b3d4..70c5add8e06894311ce1eb8b57af0f5ca3ae7fe9 100644 (file)
@@ -75,6 +75,7 @@ class Tar implements IArchive {
         * archiveName must be tarball or gzipped tarball
         * 
         * @param       string          $archiveName
+        * @throws      SystemException
         */
        public function __construct($archiveName) {
                if (!is_file($archiveName)) {
index b95e2f79511d32fb96a8904245b63deb9f516f0e..ac218a69d6357dfb2c2673ad279c7c317395c335 100644 (file)
@@ -85,6 +85,7 @@ class TarWriter extends Tar {
         * @param       string          $addDir
         * @param       string          $removeDir
         * @return      boolean         result
+        * @throws      SystemException
         */
        public function add($files, $addDir = '', $removeDir = '') {
                if (!is_array($files)) $files = array($files);
index 621ef18841b9f05427b52379c3d7969e0384a5d8..18135e0b249a2306712f0b9c10d1bb4d6b93b4d5 100644 (file)
@@ -159,12 +159,13 @@ class Zip extends File implements IArchive {
         * Reads the central directory and returns it.
         * 
         * @return      array
+        * @throws      SystemException
         */
        protected function readCentralDirectory() {
                $this->jumpToCentralDirectory();
                
                $offset = $this->tell();
-
+               
                // check signature
                if ($this->read(4) !== self::CENTRAL_DIRECTORY_SIGNATURE) {
                        throw new SystemException('Not in central directory');
@@ -221,6 +222,7 @@ class Zip extends File implements IArchive {
         * 
         * @param       integer         $offset         where to start reading
         * @return      boolean
+        * @throws      SystemException
         */
        public function isFile($offset = null) {
                if ($offset === null) $offset = $this->tell();
@@ -240,6 +242,7 @@ class Zip extends File implements IArchive {
         * 
         * @param       integer         $offset         where to start reading
         * @return      array
+        * @throws      SystemException
         */
        public function readFile($offset = null) {
                if ($offset === null) $offset = $this->tell();
index 2d928c89c96b31a144e3563b619dd191d4b88dc0..d38ae2bea178cf7f5b07baeb0715f9eb9ce9f062 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\label;
+use wcf\data\label\group\ViewableLabelGroup;
 use wcf\data\object\type\ObjectTypeCache;
 use wcf\system\cache\builder\LabelCacheBuilder;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
@@ -107,8 +108,9 @@ class LabelHandler extends SingletonFactory {
         * Returns an array with boolean values for each given label id.
         * 
         * @param       string                  $optionName
-        * @param       array<integer>          $labelIDs
+        * @param       integer[]               $labelIDs
         * @return      array
+        * @throws      SystemException
         */
        public function getPermissions($optionName, array $labelIDs) {
                if (empty($labelIDs)) {
@@ -270,10 +272,11 @@ class LabelHandler extends SingletonFactory {
        /**
         * Returns given label groups by id.
         * 
-        * @param       array<integer>          $groupID
-        * @param       boolean                 $validatePermissions
-        * @param       string                  $permission
-        * @return      array<\wcf\data\label\group\ViewableLabelGroup>
+        * @param       integer[]       $groupIDs
+        * @param       boolean         $validatePermissions
+        * @param       string          $permission
+        * @return      ViewableLabelGroup[]
+        * @throws      SystemException
         */
        public function getLabelGroups(array $groupIDs = array(), $validatePermissions = true, $permission = 'canSetLabel') {
                $data = array();
index 7e37d5c4a1d6f1ffeb6f7872bc8cf733261c1690..b3dcdedf0272149ccd05d7b095d6dfa2c54279e5 100644 (file)
@@ -170,6 +170,7 @@ class I18nHandler extends SingletonFactory {
         * 
         * @param       string          $elementID
         * @param       string          $plainValue
+        * @throws      SystemException
         */
        public function setValue($elementID, $plainValue) {
                if (!is_string($plainValue)) {
@@ -193,6 +194,7 @@ class I18nHandler extends SingletonFactory {
         * 
         * @param       string          $elementID
         * @param       string[]        $i18nValues
+        * @throws      SystemException
         */
        public function setValues($elementID, array $i18nValues) {
                if (empty($i18nValues)) {
index b4c9e3355a83052ea7993f80ec0d2a730b939ba3..565d4d56188d02f4cd72df51ffe52daf0db6249a 100644 (file)
@@ -66,7 +66,8 @@ class LanguageServerProcessor extends SingletonFactory {
         * Downloads and imports a language file from a language server.
         * 
         * @param       string          $location
-        * @param       array<string>   $packageList
+        * @param       string[]        $packageList
+        * @throws      SystemException
         */
        protected function importLanguageFile($location, array $packageList) {
                // get proxy
index d09c0ad25759d4c32c1b6421cc88e850300c302e..020d567bf09117d91451b1e9134b0e5055cdab44 100644 (file)
@@ -98,8 +98,6 @@ abstract class AbstractModificationLogHandler extends SingletonFactory {
         * 
         * @param       integer[]       $objectIDs
         * @param       string[]        $ignoredActions         names of actions whose log entries will not be deleted
-        * @throws      DatabaseQueryException
-        * @throws      DatabaseQueryExecutionException
         */
        public function deleteLogs(array $objectIDs, array $ignoredActions = []) {
                if (empty($objectIDs)) return;
@@ -121,8 +119,6 @@ abstract class AbstractModificationLogHandler extends SingletonFactory {
         * Deletes modification log entries by the id of the parent object.
         * 
         * @param       integer[]       $parentObjectIDs
-        * @throws      DatabaseQueryException
-        * @throws      DatabaseQueryExecutionException
         */
        public function deleteLogsByParentIDs(array $parentObjectIDs) {
                if (empty($parentObjectIDs)) return;
index 81405903a758c039909d3c05bd1ee56b1aed826d..70429327d7e5671b803ab7f6b3774bdf5a356340 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\log\modification;
+use wcf\data\modification\log\ModificationLog;
 use wcf\data\modification\log\ModificationLogEditor;
 use wcf\data\object\type\ObjectTypeCache;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
@@ -58,7 +59,8 @@ class ModificationLogHandler extends SingletonFactory {
         * @param       integer         $time
         * @param       integer         $userID
         * @param       string          $username
-        * @return      \wcf\data\modification\log\ModificationLog
+        * @return      ModificationLog
+        * @throws      SystemException
         */
        protected function _add($objectType, $objectID, $action, array $additionalData = array(), $time = TIME_NOW, $userID = null, $username = null) {
                $objectTypeObj = $this->getObjectType($objectType);
@@ -94,7 +96,8 @@ class ModificationLogHandler extends SingletonFactory {
         * Removes log entries.
         * 
         * @param       string          $objectType
-        * @param       array<integer>  $objectIDs
+        * @param       integer[]       $objectIDs
+        * @throws      SystemException
         */
        protected function _remove($objectType, array $objectIDs) {
                $objectTypeObj = $this->getObjectType($objectType);
index 242f249b4263681ea183e2901200959a899103b5..fff3f31b1f6c0ba1cc703de17eb742fd6a8c3884 100644 (file)
@@ -104,6 +104,8 @@ class QuickReplyManager extends SingletonFactory {
         * @param       array<array>                    $parameters
         * @param       string                          $containerClassName
         * @param       string                          $containerDecoratorClassName
+        * @throws      SystemException
+        * @throws      UserInputException
         */
        public function validateParameters(IMessageQuickReplyAction $object, array &$parameters, $containerClassName, $containerDecoratorClassName = '') {
                if (!isset($parameters['data']['message'])) {
index 2b0260a592df9ad42c8e7e428dbc34f4d3c17df3..715de46720f713c0e2581eb0bf191f567223821a 100644 (file)
@@ -103,6 +103,7 @@ class MessageQuoteManager extends SingletonFactory {
         * @param       string          $fullQuote
         * @param       boolean         $returnFalseIfExists
         * @return      mixed
+        * @throws      SystemException
         */
        public function addQuote($objectType, $parentObjectID, $objectID, $message, $fullQuote = '', $returnFalseIfExists = true) {
                if (!isset($this->objectTypes[$objectType])) {
@@ -476,6 +477,7 @@ class MessageQuoteManager extends SingletonFactory {
         * 
         * @param       string[]                $objectTypes
         * @return      array<array>
+        * @throws      SystemException
         */
        public function getFullQuoteObjectIDs(array $objectTypes) {
                $objectIDs = [];
@@ -506,6 +508,7 @@ class MessageQuoteManager extends SingletonFactory {
         * 
         * @param       string          $objectType
         * @param       integer[]       $objectIDs
+        * @throws      SystemException
         */
        public function initObjects($objectType, array $objectIDs) {
                if (!isset($this->objectTypes[$objectType])) {
index 571ea97785ef120522eb74dbb6e6dede5d015235..5617958d4268e317afa67ed71d5bcb0f770c4a26 100644 (file)
@@ -53,6 +53,7 @@ class ModerationQueueActivationManager extends AbstractModerationQueueManager {
         * @param       string          $objectType
         * @param       integer         $objectID
         * @param       array           $additionalData
+        * @throws      SystemException
         */
        public function addModeratedContent($objectType, $objectID, array $additionalData = array()) {
                if (!$this->isValid($objectType)) {
@@ -71,7 +72,8 @@ class ModerationQueueActivationManager extends AbstractModerationQueueManager {
         * Marks entries from moderation queue as done.
         * 
         * @param       string          $objectType
-        * @param       array<integer>  $objectIDs
+        * @param       integer[]       $objectIDs
+        * @throws      SystemException
         */
        public function removeModeratedContent($objectType, array $objectIDs) {
                if (!$this->isValid($objectType)) {
index 5467e9482a661025b48fef34ecbf15e17794d3c8..d2576de55e5ec7f62b4cef93d4af67a2b617db97 100644 (file)
@@ -2,6 +2,7 @@
 namespace wcf\system\moderation\queue;
 use wcf\data\moderation\queue\ModerationQueue;
 use wcf\data\moderation\queue\ModerationQueueList;
+use wcf\data\moderation\queue\ViewableModerationQueue;
 use wcf\data\object\type\ObjectTypeCache;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
 use wcf\system\exception\SystemException;
@@ -183,8 +184,9 @@ class ModerationQueueManager extends SingletonFactory {
        /**
         * Populates object properties for viewing.
         * 
-        * @param       integer                                                         $objectTypeID
-        * @param       array<\wcf\data\moderation\queue\ViewableModerationQueue>       $objects
+        * @param       integer                         $objectTypeID
+        * @param       ViewableModerationQueue[]       $objects
+        * @throws      SystemException
         */
        public function populate($objectTypeID, array $objects) {
                $moderationType = '';
@@ -439,8 +441,9 @@ class ModerationQueueManager extends SingletonFactory {
        /**
         * Removes moderation queues, should only be called if related objects are permanently deleted.
         * 
-        * @param       string                  $objectType
-        * @param       array<integer>          $objectIDs
+        * @param       string          $objectType
+        * @param       integer[]       $objectIDs
+        * @throws      SystemException
         */
        public function removeQueues($objectType, array $objectIDs) {
                $definitionNames = $this->getDefinitionNamesByObjectType($objectType);
index 5d8418cbb0139aaa28839b539c4e1f435cc257a8..3e706f8a353542d72a705429ba7a0de2896d7fd9 100644 (file)
@@ -119,6 +119,7 @@ class ModerationQueueReportManager extends AbstractModerationQueueManager {
         * @param       integer         $objectID
         * @param       string          $message
         * @param       array           $additionalData
+        * @throws      SystemException
         */
        public function addReport($objectType, $objectID, $message, array $additionalData = array()) {
                if (!$this->isValid($objectType)) {
index ca1538c3d97994d12f7ebecd8c323ab4c4bdeab0..8092ef94d432638416cdae80e59b457e9cb56d1c 100644 (file)
@@ -286,7 +286,8 @@ class OptionHandler implements IOptionHandler {
        /**
         * Validates an option.
         * 
-        * @param       \wcf\data\option\Option         $option
+        * @param       Option          $option
+        * @throws      UserInputException
         */
        protected function validateOption(Option $option) {
                // get type object
@@ -320,7 +321,8 @@ class OptionHandler implements IOptionHandler {
         * Returns an object of the requested option type.
         * 
         * @param       string                  $type
-        * @return      \wcf\system\option\IOptionType
+        * @return      IOptionType
+        * @throws      SystemException
         */
        public function getTypeObject($type) {
                if (!isset($this->typeObjects[$type])) {
@@ -341,6 +343,7 @@ class OptionHandler implements IOptionHandler {
         * 
         * @param       string          $optionType
         * @return      string
+        * @throws      SystemException
         */
        protected function getClassName($optionType) {
                $optionType = StringUtil::firstCharToUpperCase($optionType);
index 91d824a0956a381635ea92684c3138e6b224697f..4a5aa01cb6471e645a8a58af4e34dd36355cf824 100644 (file)
@@ -741,6 +741,7 @@ class PackageArchive {
         * @param       string          $filename
         * @param       string          $tempPrefix
         * @return      string
+        * @throws      PackageValidationException
         */
        public function extractTar($filename, $tempPrefix = 'package_') {
                // search the requested tar archive in our package archive.
index e8181f7baafc6e867cd06a5e9bab80257138c436..81da8cb6dc51175171052aec1432c5f2d0676035 100644 (file)
@@ -306,6 +306,7 @@ class PackageInstallationDispatcher {
         * 
         * @param       mixed[]         $nodeData
         * @return      PackageInstallationStep
+        * @throws      SystemException
         */
        protected function installPackage(array $nodeData) {
                $installationStep = new PackageInstallationStep();
@@ -532,8 +533,9 @@ class PackageInstallationDispatcher {
        /**
         * Executes a package installation plugin.
         * 
-        * @param       mixed[] $nodeData
+        * @param       mixed[]         $nodeData
         * @return      boolean
+        * @throws      SystemException
         */
        protected function executePIP(array $nodeData) {
                $step = new PackageInstallationStep();
index a53893f5b2fcfc01b3b04bc0efa7921bdc4fb5c8..398d903048e17e7c73bdddace3e12819fef1a8e5 100644 (file)
@@ -436,6 +436,7 @@ class PackageInstallationNodeBuilder {
         * Builds nodes for required packages, whereas each has it own node.
         * 
         * @return      string
+        * @throws      SystemException
         */
        protected function buildRequirementNodes() {
                $queue = $this->installation->queue;
index 5add17dd68186e9afe781b54ab77f26ef84e74b9..0ee8d966cc88a1c6006ade4df6dad668871800d4 100644 (file)
@@ -209,6 +209,8 @@ class PackageInstallationScheduler {
         * @param       array           $packageUpdateVersions  package update versions
         * @param       boolean         $validateInstallInstructions
         * @return      string          tmp filename of a downloaded package
+        * @throws      PackageUpdateUnauthorizedException
+        * @throws      SystemException
         */
        protected function downloadPackage($package, $packageUpdateVersions, $validateInstallInstructions = false) {
                // get download from cache
@@ -551,6 +553,7 @@ class PackageInstallationScheduler {
         * @param       string          $currentVersion         current package version
         * @param       string          $newVersion             new package version
         * @return      array           list of update steps (old version => new version, old version => new version, ...)
+        * @throws      SystemException
         */
        protected function findShortestUpdateThread($package, $fromversions, $currentVersion, $newVersion) {
                if (!isset($fromversions[$newVersion])) {
index e7b7c94289f95c6f4ccdea045f5b740e23e68c51..cd24f6285be3af3f28cb3812d3fe47ea295d7412 100644 (file)
@@ -88,8 +88,10 @@ class PackageUpdateDispatcher extends SingletonFactory {
        /**
         * Gets the package_update.xml from an update server.
         * 
-        * @param       \wcf\data\package\update\server\PackageUpdateServer     $updateServer
-        * @param       boolean                                                 $forceHTTP
+        * @param       PackageUpdateServer     $updateServer
+        * @param       boolean                 $forceHTTP
+        * @throws      PackageUpdateUnauthorizedException
+        * @throws      SystemException
         */
        protected function getPackageUpdateXML(PackageUpdateServer $updateServer, $forceHTTP = false) {
                $settings = array();
@@ -195,7 +197,8 @@ class PackageUpdateDispatcher extends SingletonFactory {
         * Parses a stream containing info from a packages_update.xml.
         * 
         * @param       string          $content
-        * @return      array           $allNewPackages
+        * @return      array
+        * @throws      SystemException
         */
        protected function parsePackageUpdateXML($content) {
                // load xml document
@@ -660,6 +663,7 @@ class PackageUpdateDispatcher extends SingletonFactory {
         * @param       string          $package        package identifier
         * @param       string          $version        package version
         * @return      array           package update versions
+        * @throws      SystemException
         */
        public function getPackageUpdateVersions($package, $version = '') {
                // get newest package version
index 62a91ce43bc95bd18601bac8574b10b1226d738e..49dbd4b0033318ddcf9d628ec190f5492e075a3e 100644 (file)
@@ -90,6 +90,7 @@ class ACLOptionPackageInstallationPlugin extends AbstractOptionPackageInstallati
         * Imports options.
         * 
         * @param       \DOMXPath       $xpath
+        * @throws      SystemException
         */
        protected function importOptions(\DOMXPath $xpath) {
                $elements = $xpath->query('/ns:data/ns:import/ns:options/ns:option');
@@ -176,6 +177,7 @@ class ACLOptionPackageInstallationPlugin extends AbstractOptionPackageInstallati
         * 
         * @param       string          $optionType
         * @return      integer
+        * @throws      SystemException
         */
        protected function getObjectTypeID($optionType) {
                if (!isset($this->optionTypeIDs[$optionType])) {
index 3c94d1de2a59ffc695451925311703d996adc8d6..4604fd7fd54d01d013ba5195101f0125526fede3 100644 (file)
@@ -99,6 +99,7 @@ abstract class AbstractOptionPackageInstallationPlugin extends AbstractXMLPackag
         * Imports option categories.
         * 
         * @param       \DOMXPath       $xpath
+        * @throws      SystemException
         */
        protected function importCategories(\DOMXPath $xpath) {
                $elements = $xpath->query('/ns:data/ns:import/ns:categories/ns:category');
@@ -147,6 +148,7 @@ abstract class AbstractOptionPackageInstallationPlugin extends AbstractXMLPackag
         * Imports options.
         * 
         * @param       \DOMXPath       $xpath
+        * @throws      SystemException
         */
        protected function importOptions(\DOMXPath $xpath) {
                $elements = $xpath->query('/ns:data/ns:import/ns:options/ns:option');
@@ -201,6 +203,7 @@ abstract class AbstractOptionPackageInstallationPlugin extends AbstractXMLPackag
         * Installs option categories.
         * 
         * @param       array           $category
+        * @throws      SystemException
         */
        protected function saveCategory($category) {
                // search existing category
index 2f8d8207052cc5c1b54d437b16904b3fa0189e4d..2555aed7a5d97a7510d28fe2da19eb6d5fcbc92e 100644 (file)
@@ -326,6 +326,7 @@ abstract class AbstractXMLPackageInstallationPlugin extends AbstractPackageInsta
         * 
         * @param       string          $filename
         * @return      XML             $xml
+        * @throws      SystemException
         */
        protected function getXML($filename = '') {
                if (empty($filename)) {
index 609b7fba328e48cb50fa11ad059f7644cd14dc11..b8950e513fd66ca42de2444a466d5fb7b673291f 100644 (file)
@@ -181,7 +181,8 @@ class LanguagePackageInstallationPlugin extends AbstractXMLPackageInstallationPl
         * was not found, an exception message is thrown.
         * 
         * @param       string          $filename
-        * @return      \wcf\util\XML
+        * @return      XML
+        * @throws      SystemException
         */
        protected function readLanguage($filename) {
                // search language files in package archive
index c97a8798ae4b196b574d085ab7d68830250ce3bc..17280b6e08dd08753b0b4af5f7f88403f3a8a0ac 100644 (file)
@@ -35,6 +35,7 @@ class ObjectTypePackageInstallationPlugin extends AbstractXMLPackageInstallation
         * 
         * @param       string          $definitionName
         * @return      integer
+        * @throws      SystemException
         */
        protected function getDefinitionID($definitionName) {
                // get object type id
index 5c4f2b9a09d1f258a0a1ad444b765a79fba29def..a1d717b3bcff4a19fb65193fd684789eba86fff7 100644 (file)
@@ -141,6 +141,7 @@ class SQLPackageInstallationPlugin extends AbstractPackageInstallationPlugin {
         * 
         * @param       string          $filename
         * @return      string
+        * @throws      SystemException
         */
        protected function getSQL($filename) {
                // search sql files in package archive
index c1fcda44b0ed510e752753b47c3ac0f801e238b3..f3653dcaf8a96ad7ef86f069bd181de467ea2dde 100644 (file)
@@ -185,6 +185,7 @@ class PackageValidationArchive implements \RecursiveIterator {
         * 
         * @param       string          $requiredVersion
         * @param       integer         $validationMode
+        * @throws      PackageValidationException
         */
        protected function validateInstructions($requiredVersion, $validationMode) {
                $package = $this->getPackage();
@@ -230,6 +231,7 @@ class PackageValidationArchive implements \RecursiveIterator {
         * 
         * @param       string          $type
         * @param       array<array>    $instructions
+        * @throws      PackageValidationException
         */
        protected function validatePackageInstallationPlugins($type, array $instructions) {
                for ($i = 0, $length = count($instructions); $i < $length; $i++) {
@@ -248,6 +250,7 @@ class PackageValidationArchive implements \RecursiveIterator {
         * Validates if an installed package excludes the current package and vice versa.
         * 
         * @param       string          $package
+        * @throws      PackageValidationException
         */
        protected function validateExclusion($package) {
                $packageVersion = $this->archive->getPackageInfo('version');
index e118bd8acadbfea757d070573f22783d22f329d2..293d81bf87723e41762642bb5b8d7edeb5590c7e 100644 (file)
@@ -45,7 +45,8 @@ class PageManager extends SingletonFactory {
         * are returned.
         * 
         * @param       string          $application
-        * @return      array<string>
+        * @return      string[]
+        * @throws      SystemException
         */
        public function getSelection($application = null) {
                $objectTypes = $this->objectTypes;
index 374208c342f800ac97d76092e83b3b13b8660aca..5d0dac103ae6f8b04ecb60f83760f9f8cdde5073 100644 (file)
@@ -105,6 +105,7 @@ class PollManager extends SingletonFactory {
         * @param       integer         $objectID
         * @param       integer         $pollID
         * @return      boolean
+        * @throws      SystemException
         */
        public function setObject($objectType, $objectID, $pollID = 0) {
                if (!isset($this->cache[$objectType])) {
@@ -236,6 +237,7 @@ class PollManager extends SingletonFactory {
         * 
         * @param       integer         $objectID
         * @return      integer
+        * @throws      SystemException
         */
        public function save($objectID = null) {
                if ($objectID !== null) {
@@ -396,6 +398,7 @@ class PollManager extends SingletonFactory {
         * @param       integer         $objectTypeID
         * @param       string          $objectType
         * @return      mixed
+        * @throws      SystemException
         */
        protected function getHandler($objectTypeID, $objectType = '') {
                if ($objectTypeID !== null) {
index ca4bdf820909b3be5e15394c37033d13d4defdbf..12fdf798545096943cb5a42aa53d2255a61360a8 100644 (file)
@@ -79,6 +79,8 @@ class RecaptchaHandler extends SingletonFactory {
         * 
         * @param       string          $challenge
         * @param       string          $response
+        * @throws      SystemException
+        * @throws      UserInputException
         */
        public function validate($challenge, $response) {
                // fail if challenge or response are empty to avoid sending api requests
index f73706f227a21f0160f50b650a5d837ba1973e27..20062d2accf57234e098dbd106a0ca2c0abb0142 100644 (file)
@@ -22,6 +22,7 @@ class RecaptchaHandlerV2 extends SingletonFactory {
         * Validates response.
         * 
         * @param       string          $response
+        * @throws      UserInputException
         */
        public function validate($response) {
                // fail if response is empty to avoid sending api requests
index 9cc705ef203e6b26a96ea176260433262069b930..dca618a7f38284d59f5074efb7521ba749549a8f 100644 (file)
@@ -189,6 +189,7 @@ class ControllerMap extends SingletonFactory {
         * 
         * @param       string          $application    application identifier
         * @return      null|string[]   default controller
+        * @throws      SystemException
         */
        public function lookupDefaultController($application) {
                $controller = $this->landingPages[$application][1];
index c6bc115f5b4f6dbe998523918d7d735d1779e451..2e9aa4aef2f33e3ebc0d6020195fdae80069ea33 100644 (file)
@@ -210,7 +210,6 @@ class LinkHandler extends SingletonFactory {
         * @param       integer         $pageID         page id
         * @param       integer         $languageID     language id, optional
         * @return      string          full URL of empty string if `$pageID` is invalid
-        * @throws      \wcf\system\exception\SystemException
         * @since       2.2
         */
        public function getCmsLink($pageID, $languageID = -1) {
index aa03efa7a9e6db825535329c33607c3c7e1087fd..199a5d4e632b1d317d6d8dd8daa79e75fc5fb155 100644 (file)
@@ -208,6 +208,7 @@ class RequestHandler extends SingletonFactory {
         * 
         * @param       string          $application
         * @param       string[]        $routeData
+        * @throws      IllegalLinkException
         */
        protected function handleDefaultController($application, array &$routeData) {
                if (!RouteHandler::getInstance()->isDefaultController()) {
index 3e5eccc35d17a4ff7a9371294688786bb0070ab5..936a664243cb99d2407f1a68c1a4c04f120955c0 100644 (file)
@@ -82,6 +82,7 @@ class Route implements IRoute {
         * 
         * @param       string          $routeSchema
         * @param       string          $controller
+        * @throws      SystemException
         */
        public function setSchema($routeSchema, $controller = null) {
                $schemaParts = $this->getParts($routeSchema);
index 6cebe71e3afde3514ba1699fa6213fdf804edeb0..f152e717eeaadfe57b5791177dfbe7c8de2644a7 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\search;
+use wcf\data\object\type\ObjectType;
 use wcf\data\object\type\ObjectTypeCache;
 use wcf\data\package\Package;
 use wcf\data\package\PackageList;
@@ -48,6 +49,7 @@ class SearchIndexManager extends SingletonFactory implements ISearchIndexManager
         * 
         * @param       string          $objectType
         * @return      integer
+        * @throws      SystemException
         */
        public function getObjectTypeID($objectType) {
                if (!isset($this->availableObjectTypes[$objectType])) {
@@ -61,7 +63,8 @@ class SearchIndexManager extends SingletonFactory implements ISearchIndexManager
         * Returns the the object type with the given name.
         * 
         * @param       string          $objectType
-        * @return      \wcf\data\object\type\ObjectType
+        * @return      ObjectType
+        * @throws      SystemException
         */
        public function getObjectType($objectType) {
                if (!isset($this->availableObjectTypes[$objectType])) {
index 0a9c30861cd120c53d1a83d83251f5e3a5c04a09..04d4102fdcd7d0e0f09922d25ed87910b72e536a 100644 (file)
@@ -40,7 +40,8 @@ class ACPSearchHandler extends SingletonFactory {
         * 
         * @param       string          $query
         * @param       integer         $limit
-        * @return      array<\wcf\system\search\acp\ACPSearchResultList>
+        * @return      ACPSearchResultList[]
+        * @throws      SystemException
         */
        public function search($query, $limit = 10) {
                $data = array();
index e37341b15c91a862dbc982650e031da9e885ba6a..15cf56d5b541dfd63679db9b27649d4f77d99bee 100644 (file)
@@ -67,6 +67,7 @@ abstract class AbstractCategorizedACPSearchResultProvider extends AbstractACPSea
         * 
         * @param       string                  $categoryName
         * @return      \wcf\data\DatabaseObject
+        * @throws      SystemException
         */
        protected function getTopCategory($categoryName) {
                if (!$this->isValid($categoryName)) {
index 7dfc1c57aecebf2d3cc29309fc3ae65760b6052b..bf859b36d9c0db595c1a2e6bfaa6c969b6668db9 100644 (file)
@@ -717,7 +717,8 @@ class SessionHandler extends SingletonFactory {
        /**
         * Changes the user stored in the session.
         * 
-        * @param       \wcf\data\user\User     $user
+        * @param       User    $user
+        * @throws      DatabaseException
         */
        protected function changeUserVirtual(User $user) {
                /** @var \wcf\data\DatabaseObjectEditor $sessionEditor */
index 261110555beea92d7f826200a012f8194822254c..1a48c3d6b6c0ebe1a6c13a0f77d82201cd5a1e65 100644 (file)
@@ -74,6 +74,7 @@ class Installer {
         * Creates a directory in the target directory.
         * 
         * @param       string          $dir
+        * @throws      SystemException
         */
        protected function createDir($dir) {
                if (!@is_dir($this->targetDir.$dir)) {
index 0b72bc0399f2f9c2a695d79fdc48abb50e945836..7cc1d121c339712f1d95aa1a7746db8aee84f9da 100644 (file)
@@ -84,6 +84,7 @@ class SitemapHandler extends SingletonFactory {
         * Validates sitemap name.
         * 
         * @param       string          $sitemapName
+        * @throws      SystemException
         */
        public function validateSitemapName($sitemapName) {
                if (empty($sitemapName)) {
index b3aafc78d75e80a63f5fd3fbaf01902d23b12d90..e319f69951b3ff9ade51541fe99ccf55abb47344 100644 (file)
@@ -264,6 +264,7 @@ class StyleCompiler extends SingletonFactory {
         * 
         * @param       string          $filename
         * @return      string
+        * @throws      SystemException
         */
        protected function prepareFile($filename) {
                if (!file_exists($filename) || !is_readable($filename)) {
@@ -284,6 +285,7 @@ class StyleCompiler extends SingletonFactory {
         * @param       string[]        $variables
         * @param       string          $individualScss
         * @param       Callback        $callback
+        * @throws      SystemException
         */
        protected function compileStylesheet($filename, array $files, array $variables, $individualScss, Callback $callback) {
                foreach ($variables as &$value) {
index 031112f599b91b0915a2127f2e2637087a18fe78..346733bd34de8d5afffdc7c2a336bd75aab3fadc 100644 (file)
@@ -83,6 +83,7 @@ class StyleHandler extends SingletonFactory {
         * 
         * @param       integer         $styleID
         * @param       boolean         $ignorePermissions
+        * @throws      SystemException
         */
        public function changeStyle($styleID = 0, $ignorePermissions = false) {
                // check permission
index cb63fe11f92bca4b4765fecc424f13329c71be97..e530a737b6b929e5bdcff33d1e64c894d14e38b7 100644 (file)
@@ -190,6 +190,7 @@ class TagEngine extends SingletonFactory {
         * 
         * @param       string          $objectType
         * @return      integer
+        * @throws      SystemException
         */
        public function getObjectTypeID($objectType) {
                // get object type
index 1b4b0eddeaa9e853c6262c546ee4fbedc96ee32d..c5ff59128f09c117c95dc25e79c68495f4a2a4b9 100755 (executable)
@@ -334,6 +334,7 @@ class TemplateEngine extends SingletonFactory {
         * @param       string          $templateName
         * @param       string          $application
         * @return      string          $path
+        * @throws      SystemException
         */
        public function getSourceFilename($templateName, $application) {
                $sourceFilename = $this->getPath($this->templatePaths[$application], $templateName);
@@ -478,7 +479,8 @@ class TemplateEngine extends SingletonFactory {
         * Reads the content of a template file.
         * 
         * @param       string          $sourceFilename
-        * @return      string          $sourceContent
+        * @return      string
+        * @throws      SystemException
         */
        public function getSourceContent($sourceFilename) {
                $sourceContent = '';
@@ -652,6 +654,7 @@ class TemplateEngine extends SingletonFactory {
         * Sets the dir for the compiled templates.
         * 
         * @param       string          $compileDir
+        * @throws      SystemException
         */
        public function setCompileDir($compileDir) {
                if (!is_dir($compileDir)) {
index 7644add1e9a92e8c12354d73522ff09f406e76e1..18d1c9c59ad34504f21e058c63b25ce0c47340b9 100644 (file)
@@ -196,6 +196,7 @@ class TemplateScriptingCompiler {
         * @param       array           $metaData
         * @param       boolean         $isolated
         * @return      string
+        * @throws      SystemException
         */
        public function compileString($identifier, $sourceContent, array $metaData = array(), $isolated = false) {
                if ($isolated) {
@@ -301,6 +302,7 @@ class TemplateScriptingCompiler {
         * @param       string          $identifier
         * @param       array           $metaData
         * @return      string
+        * @throws      SystemException
         */
        protected function compileTag($tag, $identifier, array &$metaData) {
                if (preg_match('~^'.$this->outputPattern.'~s', $tag)) {
@@ -455,6 +457,7 @@ class TemplateScriptingCompiler {
         * @param       string          $tagCommand
         * @param       string          $tagArgs
         * @return      mixed
+        * @throws      SystemException
         */
        protected function compileBlockPlugin($tagCommand, $tagArgs) {
                // check wheater this is the start ({block}) or the
@@ -502,6 +505,7 @@ class TemplateScriptingCompiler {
         * @param       string          $tagCommand
         * @param       string          $tagArgs
         * @return      mixed
+        * @throws      SystemException
         */
        protected function compileCompilerPlugin($tagCommand, $tagArgs) {
                // check wheater this is the start ({block}) or the
@@ -584,6 +588,7 @@ class TemplateScriptingCompiler {
         * 
         * @param       string          $sectionTag
         * @return      string
+        * @throws      SystemException
         */
        protected function compileSectionTag($sectionTag) {
                $args = $this->parseTagArgs($sectionTag, 'section');
@@ -658,6 +663,7 @@ class TemplateScriptingCompiler {
         * 
         * @param       string          $foreachTag
         * @return      string
+        * @throws      SystemException
         */
        protected function compileForeachTag($foreachTag) {
                $args = $this->parseTagArgs($foreachTag, 'foreach');
@@ -707,6 +713,7 @@ class TemplateScriptingCompiler {
         * @param       string          $identifier
         * @param       array           $metaData
         * @return      string
+        * @throws      SystemException
         */
        protected function compileIncludeTag($includeTag, $identifier, array $metaData) {
                $args = $this->parseTagArgs($includeTag, 'include');
@@ -847,6 +854,7 @@ class TemplateScriptingCompiler {
         * @param       string          $tagArgs
         * @param       string          $tag
         * @return      array
+        * @throws      SystemException
         */
        public function parseTagArgs($tagArgs, $tag) {
                // replace strings
@@ -930,6 +938,7 @@ class TemplateScriptingCompiler {
         * @param       string          $tagArgs
         * @param       boolean         $elseif         true, if this tag is an else tag
         * @return      string
+        * @throws      SystemException
         */
        protected function compileIfTag($tagArgs, $elseif = false) {
                $tagArgs = $this->replaceQuotes($tagArgs);
@@ -1023,6 +1032,7 @@ class TemplateScriptingCompiler {
         * 
         * @param       string          $tag
         * @return      string
+        * @throws      SystemException
         */
        protected function compileOutputTag($tag) {
                $encodeHTML = false;
@@ -1116,6 +1126,7 @@ class TemplateScriptingCompiler {
         * 
         * @param       string          $tag
         * @return      string
+        * @throws      SystemException
         */
        public function compileVariableTag($tag, $replaceQuotes = true) {
                // replace all quotes with unique hash values
@@ -1462,6 +1473,7 @@ class TemplateScriptingCompiler {
         * @param       string          $templateName
         * @param       string          $string
         * @return      string
+        * @throws      SystemException
         */
        public function applyPrefilters($templateName, $string) {
                foreach ($this->template->getPrefilters() as $prefilter) {
index ba57970b8c3df18b19be38b8269eab4c522fddd2..0083a84275de0bd16f386ff11667e00e8455ebf8 100644 (file)
@@ -61,6 +61,7 @@ class DefaultUploadFileSaveStrategy implements IUploadFileSaveStrategy {
         * @param       string          $actionClassName
         * @param       array           $options
         * @param       array           $data
+        * @throws      SystemException
         */
        public function __construct($actionClassName, array $options = [ ], array $data = [ ]) {
                $this->actionClassName = $actionClassName;
index 108db635ddaa8628137eb909650ed6857e45bbe1..b5175acc20da87d625867c07f3522a440826d848 100644 (file)
@@ -75,6 +75,7 @@ class UserActivityEventHandler extends SingletonFactory {
         * @param       integer         $time
         * @param       array           $additionalData
         * @return      \wcf\data\user\activity\event\UserActivityEvent
+        * @throws      SystemException
         */
        public function fireEvent($objectType, $objectID, $languageID = null, $userID = null, $time = TIME_NOW, $additionalData = array()) {
                $objectTypeID = $this->getObjectTypeID($objectType);
@@ -103,7 +104,8 @@ class UserActivityEventHandler extends SingletonFactory {
         * Removes activity events.
         * 
         * @param       string          $objectType
-        * @param       array<integer>  $objectIDs
+        * @param       integer[]       $objectIDs
+        * @throws      SystemException
         */
        public function removeEvents($objectType, array $objectIDs) {
                if (empty($objectIDs)) return;
index 3d0da359c09633e73f7aad6beb2b570b7b2008e2..f8cb68c3896bbed24752c04a0439364adafe3b99 100644 (file)
@@ -49,6 +49,7 @@ class UserActivityPointHandler extends SingletonFactory {
         * @param       integer                 $objectID
         * @param       integer                 $userID
         * @param       array<mixed>            $additionalData
+        * @throws      SystemException
         */
        public function fireEvent($objectType, $objectID, $userID = null, array $additionalData = array()) {
                $objectTypeObj = $this->getObjectTypeByName($objectType);
@@ -98,9 +99,10 @@ class UserActivityPointHandler extends SingletonFactory {
         *      userID => countOfItems
         * )
         * 
-        * @param       string                  $objectType
-        * @param       array<integer>          $itemsToUser
-        * @param       boolean                 $updateUsers
+        * @param       string          $objectType
+        * @param       integer[]       $itemsToUser
+        * @param       boolean         $updateUsers
+        * @throws      SystemException
         */
        public function fireEvents($objectType, array $itemsToUser, $updateUsers = true) {
                $objectTypeObj = $this->getObjectTypeByName($objectType);
@@ -149,7 +151,8 @@ class UserActivityPointHandler extends SingletonFactory {
         * Removes activity point events.
         * 
         * @param       string                  $objectType
-        * @param       array<integer>          $userToItems
+        * @param       integer[]               $userToItems
+        * @throws      SystemException
         */
        public function removeEvents($objectType, array $userToItems) {
                if (empty($userToItems)) return;
@@ -210,6 +213,7 @@ class UserActivityPointHandler extends SingletonFactory {
         * Resets activity points and items for a given object type.
         * 
         * @param       string          $objectType
+        * @throws      SystemException
         */
        public function reset($objectType) {
                // get and validate object type
index d91d64c774a46743a686d32322a516ff8a3ce72e..966eba36b2b2081cb15facbb8e556aa352823bf1 100644 (file)
@@ -52,6 +52,7 @@ class UserCollapsibleContentHandler extends SingletonFactory {
         * @param       string          $objectType
         * @param       string          $objectID
         * @return      boolean
+        * @throws      SystemException
         */
        public function isCollapsed($objectType, $objectID) {
                $objectTypeID = $this->getObjectTypeID($objectType);
@@ -255,6 +256,7 @@ class UserCollapsibleContentHandler extends SingletonFactory {
         * 
         * @param       string          $objectType
         * @param       integer         $objectID
+        * @throws      SystemException
         */
        public function resetAll($objectType, $objectID = null) {
                $objectTypeID = $this->getObjectTypeID($objectType);
index 04813f065f84ae1530137d4b8e1ac734d456b947..b108d6813f1cc1cc805ac84c7e0de5f8e56427bb 100644 (file)
@@ -72,12 +72,13 @@ class UserNotificationHandler extends SingletonFactory {
        /**
         * Triggers a notification event.
         * 
-        * @param       string                                                          $eventName
-        * @param       string                                                          $objectType
-        * @param       \wcf\system\user\notification\object\IUserNotificationObject    $notificationObject
-        * @param       array<integer>                                                  $recipientIDs
-        * @param       array<mixed>                                                    $additionalData
-        * @param       integer                                                         $baseObjectID
+        * @param       string                          $eventName
+        * @param       string                          $objectType
+        * @param       IUserNotificationObject         $notificationObject
+        * @param       integer[]                       $recipientIDs
+        * @param       array<mixed>                    $additionalData
+        * @param       integer                         $baseObjectID
+        * @throws      SystemException
         */
        public function fireEvent($eventName, $objectType, IUserNotificationObject $notificationObject, array $recipientIDs, array $additionalData = array(), $baseObjectID = 0) {
                // check given object type and event name
@@ -552,6 +553,7 @@ class UserNotificationHandler extends SingletonFactory {
         * @param       integer         $authorID
         * @param       integer         $time
         * @return      integer
+        * @throws      SystemException
         */
        public function getNotificationID($eventID, $objectID, $authorID = null, $time = null) {
                if ($authorID === null && $time === null) {
@@ -686,7 +688,8 @@ class UserNotificationHandler extends SingletonFactory {
         * Removes notifications, this method should only be invoked for delete objects.
         * 
         * @param       string          $objectType
-        * @param       array<integer>  $objectIDs
+        * @param       integer[]       $objectIDs
+        * @throws      SystemException
         */
        public function removeNotifications($objectType, array $objectIDs) {
                // check given object type
@@ -743,8 +746,9 @@ class UserNotificationHandler extends SingletonFactory {
         * 
         * @param       string          $eventName
         * @param       string          $objectType
-        * @param       array<integer>  $recipientIDs
-        * @param       array<integer>  $objectIDs
+        * @param       integer[]       $recipientIDs
+        * @param       integer[]       $objectIDs
+        * @throws      SystemException
         */
        public function markAsConfirmed($eventName, $objectType, array $recipientIDs, array $objectIDs = array()) {
                // check given object type and event name
index b2001506f29ecf6688643b9480254503374cd013..35ba2b8b51773593c2f708883a59bd7bce437ee3 100644 (file)
@@ -24,6 +24,7 @@ class UserObjectWatchHandler extends SingletonFactory {
         * 
         * @param       string          $objectTypeName
         * @return      integer
+        * @throws      SystemException
         */
        public function getObjectTypeID($objectTypeName) {
                $objectType = ObjectTypeCache::getInstance()->getObjectTypeByName('com.woltlab.wcf.user.objectWatch', $objectTypeName);
index be8255055b65c048537ffdac3ed026428ef2e43c..7c1a9a2c5fdec0cd095c634cc9b7774c898f1a93 100644 (file)
@@ -48,6 +48,7 @@ class VisitTracker extends SingletonFactory {
         * 
         * @param       string          $objectType
         * @return      integer
+        * @throws      SystemException
         */
        public function getObjectTypeID($objectType) {
                if (!isset($this->availableObjectTypes[$objectType])) {
index e58216e918fb655185e7e79b0ce8f327063a2222..81e2fbd281de71d0cf20ef78e5dc59c910b6f934 100644 (file)
@@ -185,8 +185,9 @@ final class ArrayUtil {
         * @param       string          $method
         * @param       array           $array1
         * @param       array           $array2
-        * @param       callable        $callback
+        * @param       Callback        $callback
         * @return      boolean
+        * @throws      SystemException
         */
        protected static function compareHelper($method, array $array1, array $array2, Callback $callback = null) {
                // get function name
index 66992bb50c81532af8129ceea2722a6e044637a3..c4fffddcfb6ec1b8414901edcf3df10e147bac08 100644 (file)
@@ -34,6 +34,7 @@ final class ClassUtil {
         * @param       string          $className
         * @param       string          $targetClass
         * @return      boolean
+        * @throws      SystemException
         * 
         * @deprecated  use is_subclass_of() instead
         */
index 3aba8619c8eedaf54be5544dfe604d07e4daf74f..056c497ff9cce758105394cf17956e9d5b0a4cd6 100644 (file)
@@ -494,6 +494,7 @@ final class CronjobUtil {
         * 
         * @param       string          $name
         * @param       string          $value
+        * @throws      SystemException
         */
        protected static function validateAttribute($name, $value) {
                if ($value === '') {
index f59c8219f878d5e297883455ed82c1bcf8c4ae5f..b19c074291f3755d82717c48d4637fd53459ade9 100644 (file)
@@ -21,8 +21,9 @@ final class CryptoUtil {
        /**
         * Signs the given value with the signature secret.
         * 
-        * @param       string  $value
+        * @param       string          $value
         * @return      string
+        * @throws      CryptoException
         */
        public static function getSignature($value) {
                if (mb_strlen(SIGNATURE_SECRET, '8bit') < 15) throw new CryptoException('SIGNATURE_SECRET is too short, aborting.');
@@ -110,6 +111,7 @@ final class CryptoUtil {
         * 
         * @param       int             $n
         * @return      string
+        * @throws      CryptoException
         */
        public static function randomBytes($n) {
                try {
index c22dc118e0ed34cb7dc9045d51696925654ee952..b907f57373b6aea68315d08a67f006b2b58c8514 100644 (file)
@@ -374,6 +374,7 @@ final class DateUtil {
         * Validates if given date is valid ISO-8601.
         * 
         * @param       string          $date
+        * @throws      SystemException
         */
        public static function validateDate($date) {
                if (preg_match('~^(?P<year>[0-9]{4})-(?P<month>[0-9]{2})-(?P<day>[0-9]{2})~', $date, $matches)) {
index deafb86235ad69ecc2f24b99c514bc59299c74f0..d0b718e29e0a95517d83f914a00ccd7c28e9f24e 100644 (file)
@@ -91,6 +91,7 @@ final class DirectoryUtil {
         * @param       string          $tmpDirectory   path
         * @param       boolean         $recursive      walk through sub-directories too
         * @return      DirectoryUtil
+        * @throws      SystemException
         */
        public static function getInstance($tmpDirectory, $recursive = true) {
                $directory = realpath(FileUtil::unifyDirSeparator($tmpDirectory));
@@ -117,10 +118,11 @@ final class DirectoryUtil {
        /**
         * Returns a sorted list of files.
         * 
-        * @param       integer                 $order                  sort-order
-        * @param       \wcf\system\Regex       $pattern                pattern to match
-        * @param       boolean                 $negativeMatch          true if the pattern should be inversed
-        * @return      array<string>
+        * @param       integer         $order                  sort-order
+        * @param       Regex           $pattern                pattern to match
+        * @param       boolean         $negativeMatch          true if the pattern should be inversed
+        * @return      string[]
+        * @throws      SystemException
         */
        public function getFiles($order = SORT_ASC, Regex $pattern = null, $negativeMatch = false) {
                // scan the folder
@@ -153,10 +155,11 @@ final class DirectoryUtil {
        /**
         * Returns a sorted list of files, with DirectoryIterator object as value
         * 
-        * @param       integer                 $order                  sort order
-        * @param       \wcf\system\Regex       $pattern                pattern to match
-        * @param       boolean                 $negativeMatch          should the pattern be inversed
-        * @return      array<\DirectoryIterator>
+        * @param       integer         $order                  sort order
+        * @param       Regex           $pattern                pattern to match
+        * @param       boolean         $negativeMatch          should the pattern be inversed
+        * @return      \DirectoryIterator[]
+        * @throws      SystemException
         */
        public function getFileObjects($order = SORT_ASC, Regex $pattern = null, $negativeMatch = false) {
                // scan the folder
@@ -277,8 +280,9 @@ final class DirectoryUtil {
        /**
         * Removes all files that match the given pattern.
         * 
-        * @param       \wcf\system\Regex       $pattern                pattern to match
-        * @param       boolean                 $negativeMatch          should the pattern be inversed
+        * @param       Regex           $pattern                pattern to match
+        * @param       boolean         $negativeMatch          should the pattern be inversed
+        * @throws      SystemException
         */
        public function removePattern(Regex $pattern, $negativeMatch = false) {
                if (!$this->recursive) throw new SystemException('Removing of files only works in recursive mode');
@@ -305,6 +309,7 @@ final class DirectoryUtil {
         * Calculates the size of the directory.
         * 
         * @return      integer         directory size in bytes
+        * @throws      SystemException
         */
        public function getSize() {
                if (!$this->recursive) throw new SystemException('Calculating of size only works in recursive mode');
index 353143b71bb2e906dedd56b0e4d7cfb37093ffd0..de8e1fa8344e581a50f821fbd98df47addbd4433 100644 (file)
@@ -59,6 +59,7 @@ class FileReader {
         * 
         * @param       string          $location
         * @param       array           $options
+        * @throws      SystemException
         */
        public function __construct($location, array $options) {
                $this->location = $location;
index 8483717fbbe6c49ba03422b9910ffa40b379b30b..3c91a9b18f6f9ff7587dee093c322e18ec83763d 100644 (file)
@@ -37,6 +37,7 @@ final class FileUtil {
         * Tries to find the temp folder.
         * 
         * @return      string
+        * @throws      SystemException
         */
        public static function getTempFolder() {
                try {
@@ -519,6 +520,7 @@ final class FileUtil {
         * permissions and goes up until 0666 for files and 0777 for directories.
         * 
         * @param       string          $filename
+        * @throws      SystemException
         */
        public static function makeWritable($filename) {
                if (!file_exists($filename)) {
index ff7452228986657f6de5328738001552d2047625..a902d1fd8d14346b8d89c838ecf15a649b9961ca 100644 (file)
@@ -550,6 +550,7 @@ final class HTTPRequest {
         * Sets options and applies default values when an option is omitted.
         * 
         * @param       array           $options
+        * @throws      SystemException
         */
        private function setOptions(array $options) {
                if (!isset($options['timeout'])) {
index 7b51d197beb3ca11e438d106077295b11ecd6ca2..b60aacff146ad1f1fcb2a94f04a06ac18766e57e 100644 (file)
@@ -29,6 +29,7 @@ final class JSON {
         * @param       string          $json
         * @param       boolean         $asArray
         * @return      array
+        * @throws      SystemException
         */
        public static function decode($json, $asArray = true) {
                // decodes JSON
index 1eb596a98a2ff61c2b89707180b7ca80384c86b5..0ae53075c02854e2efbeaaa1c04be49904b21f34 100644 (file)
@@ -117,6 +117,7 @@ final class PasswordUtil {
         * @param       string          $password
         * @param       string          $dbHash
         * @return      boolean
+        * @throws      SystemException
         */
        public static function checkPassword($username, $password, $dbHash) {
                $type = self::detectEncryption($dbHash);
@@ -241,6 +242,7 @@ final class PasswordUtil {
         * @param       integer         $min
         * @param       integer         $max
         * @return      integer
+        * @throws      SystemException
         */
        public static function secureRandomNumber($min, $max) {
                $range = $max - $min;
index a30359320ac3f8d74ff76f0d1aa2ab4ed47669c2..475a523cc4585e1cb33a3411e3c6890cee085909 100644 (file)
@@ -50,6 +50,7 @@ class XML {
         * Loads a xml file for processing.
         * 
         * @param       string          $path
+        * @throws      SystemException
         */
        public function load($path) {
                $this->path = $path;
@@ -172,6 +173,7 @@ class XML {
         * 
         * @param       string          $message
         * @param       array           $errors
+        * @throws      SystemException
         */
        protected function throwException($message, array $errors = array()) {
                if (!empty($errors)) {
index 2e78be509cadfbce5ec5c210668eb94815dd6848..662f2e283aea69f37e6a552f3f58832e0944b4c4 100644 (file)
@@ -37,7 +37,8 @@ class XMLWriter {
         * @param       string          $rootElement
         * @param       string          $namespace
         * @param       string          $schemaLocation
-        * @param       array<string>   $attributes
+        * @param       string[]        $attributes
+        * @throws      SystemException
         */
        public function beginDocument($rootElement, $namespace, $schemaLocation, array $attributes = array()) {
                if ($this->activeDocument) {