public static function setExcludedPageIds($pageIds) { $pageIds = (array) $pageIds; // go trough the page ids to add them to the excluded page ids for later usage foreach ($pageIds as $pageId) { array_push(self::$excludedPageIds, $pageId); } }