/** @protected * constructor (do not use directly, use new_user_page() or new_page()) * @param page "real" page */ function MW_SpecialUserPage($page) { parent::MW_Page($page->name); $this->page = $page; $this->fill_vars(); $this->related_user = substr($this->name, strlen(MW_PAGE_NAME_PREFIX_USER)); $this->last_modified = now_as_datetime(); }
/** @protected * constructor (do not use directly, use new_page()) * @param name page name * @param revision page revision */ function MW_SpecialUploadPage($name, $revision) { parent::MW_Page($name); if (strpos($name, MW_PAGE_NAME_PREFIX_UPLOAD) === 0) { $this->upload_name = substr($name, strlen(MW_PAGE_NAME_PREFIX_UPLOAD)); $this->is_data_page = false; } else { $this->upload_name = substr($name, strlen(MW_PAGE_NAME_PREFIX_DATA)); $this->is_data_page = true; } $this->revision = $revision; $this->mime_type = $this->guess_type($this->upload_name); }
function MW_SpecialPage($name) { parent::MW_Page($name); $this->has_content = true; $this->last_modified = now_as_datetime(); }
/** @protected * constructor (do not use directly, use new_page()) * @param name page name * @param revision page revision */ function MW_DBPage($name, $revision) { parent::MW_Page($name); $this->revision = $revision; }