• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP fatalError函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中fatalError函数的典型用法代码示例。如果您正苦于以下问题:PHP fatalError函数的具体用法?PHP fatalError怎么用?PHP fatalError使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了fatalError函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: execute

 /**
  * @copydoc Form::execute()
  */
 function execute($args, $request)
 {
     // Retrieve the submission.
     $submission = $this->getSubmission();
     // Get this form decision actions labels.
     $actionLabels = EditorDecisionActionsManager::getActionLabels($this->_getDecisions());
     // Record the decision.
     $reviewRound = $this->getReviewRound();
     $decision = $this->getDecision();
     $stageId = $this->getStageId();
     import('lib.pkp.classes.submission.action.EditorAction');
     $editorAction = new EditorAction();
     $editorAction->recordDecision($request, $submission, $decision, $actionLabels, $reviewRound, $stageId);
     // Identify email key and status of round.
     switch ($decision) {
         case SUBMISSION_EDITOR_DECISION_PENDING_REVISIONS:
             $emailKey = 'EDITOR_DECISION_REVISIONS';
             $status = REVIEW_ROUND_STATUS_REVISIONS_REQUESTED;
             break;
         case SUBMISSION_EDITOR_DECISION_RESUBMIT:
             $emailKey = 'EDITOR_DECISION_RESUBMIT';
             $status = REVIEW_ROUND_STATUS_RESUBMITTED;
             break;
         case SUBMISSION_EDITOR_DECISION_DECLINE:
             $emailKey = 'SUBMISSION_UNSUITABLE';
             $status = REVIEW_ROUND_STATUS_DECLINED;
             break;
         default:
             fatalError('Unsupported decision!');
     }
     $this->_updateReviewRoundStatus($submission, $status, $reviewRound);
     // Send email to the author.
     $this->_sendReviewMailToAuthor($submission, $emailKey, $request);
 }
开发者ID:pkp,项目名称:pkp-lib,代码行数:37,代码来源:SendReviewsForm.inc.php


示例2: export

 /**
  * Export the locale files to the browser as a tarball.
  * Requires tar for operation (configured in config.inc.php).
  */
 function export($locale)
 {
     // Construct the tar command
     $tarBinary = Config::getVar('cli', 'tar');
     if (empty($tarBinary) || !file_exists($tarBinary)) {
         // We can use fatalError() here as we already have a user
         // friendly way of dealing with the missing tar on the
         // index page.
         fatalError('The tar binary must be configured in config.inc.php\'s cli section to use the export function of this plugin!');
     }
     $command = $tarBinary . ' cz';
     $localeFilesList = TranslatorAction::getLocaleFiles($locale);
     $localeFilesList = array_merge($localeFilesList, TranslatorAction::getMiscLocaleFiles($locale));
     $emailTemplateDao =& DAORegistry::getDAO('EmailTemplateDAO');
     $localeFilesList[] = $emailTemplateDao->getMainEmailTemplateDataFilename($locale);
     foreach (array_values(TranslatorAction::getEmailFileMap($locale)) as $emailFile) {
     }
     // Include locale files (main file and plugin files)
     foreach ($localeFilesList as $file) {
         if (file_exists($file)) {
             $command .= ' ' . escapeshellarg($file);
         }
     }
     header('Content-Type: application/x-gtar');
     header("Content-Disposition: attachment; filename=\"{$locale}.tar.gz\"");
     header('Cache-Control: private');
     // Workarounds for IE weirdness
     passthru($command);
 }
开发者ID:EreminDm,项目名称:water-cao,代码行数:33,代码来源:TranslatorAction.inc.php


示例3: getFieldValue

 /**
  * Get the value of a field by symbolic name.
  * @var $record object
  * @var $name string
  * @var $type SORT_ORDER_TYPE_...
  * @return mixed
  */
 function getFieldValue(&$record, $name, $type)
 {
     $fieldValue = null;
     $parsedContents = $record->getParsedContents();
     if (isset($parsedContents[$name])) {
         switch ($type) {
             case SORT_ORDER_TYPE_STRING:
                 $fieldValue = join(';', $parsedContents[$name]);
                 break;
             case SORT_ORDER_TYPE_NUMBER:
                 $fieldValue = (int) array_shift($parsedContents[$name]);
                 break;
             case SORT_ORDER_TYPE_DATE:
                 $fieldValue = strtotime($thing = array_shift($parsedContents[$name]));
                 if ($fieldValue === -1 || $fieldValue === false) {
                     $fieldValue = null;
                 }
                 break;
             default:
                 fatalError('UNKNOWN TYPE');
         }
     }
     HookRegistry::call('EtdmsPlugin::getFieldValue', array(&$this, &$fieldValue));
     return $fieldValue;
 }
开发者ID:ramonsodoma,项目名称:harvester,代码行数:32,代码来源:EtdmsPlugin.inc.php


示例4: authorize

 /**
  * @copydoc PKPHandler::authorize()
  */
 function authorize($request, &$args, $roleAssignments)
 {
     import('lib.pkp.classes.security.authorization.ContextAccessPolicy');
     $this->addPolicy(new ContextAccessPolicy($request, $roleAssignments));
     $operation = $request->getRequestedOp();
     $workflowStageRequiredOps = array('assignStage', 'unassignStage');
     if (in_array($operation, $workflowStageRequiredOps)) {
         import('lib.pkp.classes.security.authorization.internal.WorkflowStageRequiredPolicy');
         $this->addPolicy(new WorkflowStageRequiredPolicy($request->getUserVar('stageId')));
     }
     $userGroupRequiredOps = array_merge($workflowStageRequiredOps, array('editUserGroup', 'updateUserGroup', 'removeUserGroup'));
     if (in_array($operation, $userGroupRequiredOps)) {
         // Validate the user group object.
         $userGroupId = $request->getUserVar('userGroupId');
         $userGroupDao = DAORegistry::getDAO('UserGroupDAO');
         /* @var $userGroupDao UserGroupDAO */
         $userGroup = $userGroupDao->getById($userGroupId);
         if (!$userGroup) {
             fatalError('Invalid user group id!');
         } else {
             $this->_userGroup = $userGroup;
         }
     }
     return parent::authorize($request, $args, $roleAssignments);
 }
开发者ID:jprk,项目名称:pkp-lib,代码行数:28,代码来源:UserGroupGridHandler.inc.php


示例5: toXml

 /**
  * @see OAIMetadataFormat#toXml
  */
 function toXml(&$oaiRecord, $format = null)
 {
     $record =& $oaiRecord->getData('record');
     switch ($format) {
         case 'oai_dc':
             static $xslDoc, $proc;
             if (!isset($xslDoc) || !isset($proc)) {
                 // Cache the XSL
                 $xslDoc = new DOMDocument();
                 $xslDoc->load('http://www.loc.gov/standards/marcxml/xslt/MARC21slim2OAIDC.xsl');
                 $proc = new XSLTProcessor();
                 $proc->importStylesheet($xslDoc);
             }
             $xmlDoc = new DOMDocument();
             $xmlDoc->loadXML($record->getContents());
             $xml = $proc->transformToXML($xmlDoc);
             // Cheesy: strip the XML header
             if (($pos = strpos($xml, '<oai_dc:dc')) > 0) {
                 $xml = substr($xml, $pos);
             }
             return $xml;
         case 'oai_marc':
         case 'marcxml':
             return $record->getContents();
         default:
             fatalError("Unable to convert MARC to {$format}!\n");
     }
 }
开发者ID:jalperin,项目名称:harvester,代码行数:31,代码来源:OAIMetadataFormat_MARC.inc.php


示例6: updateUserMessageState

 /**
  * Update the information whether user messages should be
  * displayed or not.
  * @param $args array
  * @param $request PKPRequest
  * @return JSONMessage JSON object
  */
 function updateUserMessageState($args, $request)
 {
     // Exit with a fatal error if request parameters are missing.
     if (!isset($args['setting-name']) && isset($args['setting-value'])) {
         fatalError('Required request parameter "setting-name" or "setting-value" missing!');
     }
     // Retrieve the user from the session.
     $user = $request->getUser();
     assert(is_a($user, 'User'));
     // Validate the setting.
     // FIXME: We don't have to retrieve the setting type (which is always bool
     // for user messages) but only whether the setting name is valid and the
     // value is boolean.
     $settingName = $args['setting-name'];
     $settingValue = $args['setting-value'];
     $settingType = $this->_settingType($settingName);
     switch ($settingType) {
         case 'bool':
             if (!($settingValue === 'false' || $settingValue === 'true')) {
                 // Exit with a fatal error when the setting value is invalid.
                 fatalError('Invalid setting value! Must be "true" or "false".');
             }
             $settingValue = $settingValue === 'true' ? true : false;
             break;
         default:
             // Exit with a fatal error when an unknown setting is found.
             fatalError('Unknown setting!');
     }
     // Persist the validated setting.
     $userSettingsDao = DAORegistry::getDAO('UserSettingsDAO');
     $userSettingsDao->updateSetting($user->getId(), $settingName, $settingValue, $settingType);
     // Return a success message.
     return new JSONMessage(true);
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:41,代码来源:UserApiHandler.inc.php


示例7: user

 public function user()
 {
     if (!isset($this->user)) {
         fatalError('User not set on bid');
     }
     return $this->user;
 }
开发者ID:sampayne,项目名称:COMP3013,代码行数:7,代码来源:Bid.php


示例8: fatalError

 /**
  * Load configuration data from a file.
  * The file is assumed to be formatted in php.ini style.
  * @return array the configuration data
  */
 function &reloadData()
 {
     if (($configData =& ConfigParser::readConfig(CONFIG_FILE)) === false) {
         fatalError(sprintf('Cannot read configuration file %s', CONFIG_FILE));
     }
     return $configData;
 }
开发者ID:alenoosh,项目名称:ojs,代码行数:12,代码来源:Config.inc.php


示例9: error

 /**
  * Adds an error log to debug bar and log file
  * @static
  * @param Integer $errno error level (E_USER_xxx)
  * @param String $errstr Error message
  * @param String $errfile[optional] name of the file where error occurred - default: unknown
  * @param Integer $errline[optional] line number where error thrown - default: unknown
  * @return Boolean should always return true
  */
 static function error($errno, $errstr, $errfile = "unknown", $errline = "unknown")
 {
     switch ($errno) {
         case E_USER_ERROR:
             $error = '';
             $error .= '<p>A <b>Fatal Error</b> has occured.</p>';
             $error .= '<dl>';
             $error .= '<dt>' . $errstr . '</dt>';
             $error .= '<dd>' . $errfile . ' (' . $errline . ')</dd>';
             $error .= '</dl>';
             fatalError($error);
             break;
         case E_USER_WARNING:
             $type = 'warning';
             self::$error[] = array('type' => 'warning', 'file' => $errfile, 'line' => $errline, 'str' => $errstr);
             break;
         case E_USER_NOTICE:
             $type = 'notice';
             self::$error[] = array('type' => 'notice', 'file' => $errfile, 'line' => $errline, 'str' => $errstr);
             break;
         default:
             $type = $errno;
             self::$error[] = array('type' => $type, 'file' => $errfile, 'line' => $errline, 'str' => $errstr);
             break;
     }
     debug("------------- Error : " . $type . "--------------", 'error');
     debug("File : " . $errfile, 'error');
     debug("Line : " . $errline, 'error');
     debug("Message : " . $errstr, 'error');
     debug("----------------------------------------", 'error');
     return true;
 }
开发者ID:homework-bazaar,项目名称:SnakePHP,代码行数:41,代码来源:class.debug.php


示例10: initialize

 /**
  * @copydoc SetupListbuilderHandler::initialize()
  */
 function initialize($request)
 {
     parent::initialize($request);
     AppLocale::requireComponents(LOCALE_COMPONENT_PKP_MANAGER);
     $footerCategoryId = (int) $request->getUserVar('footerCategoryId');
     $context = $request->getContext();
     $footerCategoryDao = DAORegistry::getDAO('FooterCategoryDAO');
     $footerCategory = $footerCategoryDao->getById($footerCategoryId, $context->getId());
     if ($footerCategoryId && !isset($footerCategory)) {
         fatalError('Footer Category does not exist within this context.');
     } else {
         $this->_footerCategoryId = $footerCategoryId;
     }
     // Basic configuration
     $this->setTitle('grid.content.navigation.footer.FooterLink');
     $this->setSourceType(LISTBUILDER_SOURCE_TYPE_TEXT);
     $this->setSaveType(LISTBUILDER_SAVE_TYPE_EXTERNAL);
     $this->setSaveFieldName('footerLinks');
     import('lib.pkp.controllers.listbuilder.content.navigation.FooterLinkListbuilderGridCellProvider');
     // Title column
     $titleColumn = new MultilingualListbuilderGridColumn($this, 'title', 'common.title', null, null, null, null, array('tabIndex' => 1));
     $titleColumn->setCellProvider(new FooterLinkListbuilderGridCellProvider());
     $this->addColumn($titleColumn);
     // Url column
     $urlColumn = new MultilingualListbuilderGridColumn($this, 'url', 'common.url', null, null, null, null, array('tabIndex' => 2));
     $urlColumn->setCellProvider(new FooterLinkListbuilderGridCellProvider());
     $this->addColumn($urlColumn);
 }
开发者ID:mczirfusz,项目名称:pkp-lib,代码行数:31,代码来源:FooterLinkListbuilderHandler.inc.php


示例11: fetchReviewRoundInfo

 /**
  * Fetch information for the author on the specified review round
  * @param $args array
  * @param $request Request
  * @return JSONMessage JSON object
  */
 function fetchReviewRoundInfo($args, $request)
 {
     $this->setupTemplate($request);
     $templateMgr = TemplateManager::getManager($request);
     $stageId = $this->getAuthorizedContextObject(ASSOC_TYPE_WORKFLOW_STAGE);
     if ($stageId !== WORKFLOW_STAGE_ID_INTERNAL_REVIEW && $stageId !== WORKFLOW_STAGE_ID_EXTERNAL_REVIEW) {
         fatalError('Invalid Stage Id');
     }
     $templateMgr->assign('stageId', $stageId);
     $reviewRound = $this->getAuthorizedContextObject(ASSOC_TYPE_REVIEW_ROUND);
     $templateMgr->assign('reviewRoundId', $reviewRound->getId());
     $submission = $this->getAuthorizedContextObject(ASSOC_TYPE_SUBMISSION);
     $templateMgr->assign('submission', $submission);
     // Review round request notification options.
     $notificationRequestOptions = array(NOTIFICATION_LEVEL_NORMAL => array(NOTIFICATION_TYPE_REVIEW_ROUND_STATUS => array(ASSOC_TYPE_REVIEW_ROUND, $reviewRound->getId())), NOTIFICATION_LEVEL_TRIVIAL => array());
     $templateMgr->assign('reviewRoundNotificationRequestOptions', $notificationRequestOptions);
     // Editor has taken an action and sent an email; Display the email
     import('classes.workflow.EditorDecisionActionsManager');
     if (EditorDecisionActionsManager::getEditorTakenActionInReviewRound($reviewRound)) {
         $submissionEmailLogDao = DAORegistry::getDAO('SubmissionEmailLogDAO');
         $user = $request->getUser();
         $submissionEmailFactory = $submissionEmailLogDao->getByEventType($submission->getId(), SUBMISSION_EMAIL_EDITOR_NOTIFY_AUTHOR, $user->getId());
         $templateMgr->assign('submissionEmails', $submissionEmailFactory);
         $templateMgr->assign('showReviewAttachments', true);
     }
     return $templateMgr->fetchJson('authorDashboard/reviewRoundInfo.tpl');
 }
开发者ID:selwyntcy,项目名称:pkp-lib,代码行数:33,代码来源:AuthorDashboardReviewRoundTabHandler.inc.php


示例12: initialize

 function initialize($request)
 {
     parent::initialize($request);
     // Retrieve the authorized monograph.
     $this->setMonograph($this->getAuthorizedContextObject(ASSOC_TYPE_MONOGRAPH));
     $representativeId = (int) $request->getUserVar('representativeId');
     // set if editing or deleting a representative entry
     if ($representativeId != '') {
         $representativeDao = DAORegistry::getDAO('RepresentativeDAO');
         $representative = $representativeDao->getById($representativeId, $this->getMonograph()->getId());
         if (!isset($representative)) {
             fatalError('Representative referenced outside of authorized monograph context!');
         }
     }
     // Load submission-specific translations
     AppLocale::requireComponents(LOCALE_COMPONENT_APP_SUBMISSION, LOCALE_COMPONENT_PKP_SUBMISSION, LOCALE_COMPONENT_PKP_USER, LOCALE_COMPONENT_APP_DEFAULT, LOCALE_COMPONENT_PKP_DEFAULT);
     // Basic grid configuration
     $this->setTitle('grid.catalogEntry.representatives');
     // Grid actions
     $router = $request->getRouter();
     $actionArgs = $this->getRequestArgs();
     $this->addAction(new LinkAction('addRepresentative', new AjaxModal($router->url($request, null, null, 'addRepresentative', null, $actionArgs), __('grid.action.addRepresentative'), 'modal_add_item'), __('grid.action.addRepresentative'), 'add_item'));
     // Columns
     $cellProvider = new RepresentativesGridCellProvider();
     $this->addColumn(new GridColumn('name', 'grid.catalogEntry.representativeName', null, null, $cellProvider));
     $this->addColumn(new GridColumn('role', 'grid.catalogEntry.representativeRole', null, null, $cellProvider));
 }
开发者ID:austinvernsonger,项目名称:omp,代码行数:27,代码来源:RepresentativesGridHandler.inc.php


示例13: saveApproveProof

 /**
  * Approve a galley submission file.
  * @param $args array
  * @param $request PKPRequest
  */
 function saveApproveProof($args, $request)
 {
     $submissionFile = $this->getAuthorizedContextObject(ASSOC_TYPE_SUBMISSION_FILE);
     $submission = $this->getAuthorizedContextObject(ASSOC_TYPE_SUBMISSION);
     // Make sure we only alter files associated with a galley.
     if ($submissionFile->getAssocType() !== ASSOC_TYPE_GALLEY) {
         fatalError('The requested file is not associated with any galley.');
     }
     if ($submissionFile->getViewable()) {
         // No longer expose the file to readers.
         $submissionFile->setViewable(false);
     } else {
         // Expose the file to readers (e.g. via e-commerce).
         $submissionFile->setViewable(true);
         // Log the approve proof event.
         import('lib.pkp.classes.log.SubmissionLog');
         import('classes.log.SubmissionEventLogEntry');
         // constants
         $user = $request->getUser();
         $articleGalleyDao = DAORegistry::getDAO('ArticleGalleyDAO');
         $galley = $articleGalleyDao->getByBestGalleyId($submissionFile->getAssocId(), $submission->getId());
         SubmissionLog::logEvent($request, $submission, SUBMISSION_LOG_PROOFS_APPROVED, 'submission.event.proofsApproved', array('formatName' => $galley->getLabel(), 'name' => $user->getFullName(), 'username' => $user->getUsername()));
     }
     $submissionFileDao = DAORegistry::getDAO('SubmissionFileDAO');
     $submissionFileDao->updateObject($submissionFile);
     // update the submission's file index
     import('classes.search.ArticleSearchIndex');
     ArticleSearchIndex::submissionFilesChanged($submission);
     return DAO::getDataChangedEvent($submissionFile->getId());
 }
开发者ID:mariojp,项目名称:ojs,代码行数:35,代码来源:EditorDecisionHandler.inc.php


示例14: initialize

 /**
  * @copydoc SetupListbuilderHandler::initialize()
  */
 function initialize($request)
 {
     parent::initialize($request);
     $context = $request->getContext();
     $this->setTitle('plugins.generic.translator.localeFileContents');
     $this->setInstructions('plugins.generic.translator.localeFileContentsDescription');
     // Get and validate the locale and filename parameters
     $this->locale = $request->getUserVar('locale');
     if (!AppLocale::isLocaleValid($this->locale)) {
         fatalError('Invalid locale.');
     }
     $this->filename = $request->getUserVar('filename');
     if (!in_array($this->filename, TranslatorAction::getLocaleFiles($this->locale))) {
         fatalError('Invalid locale file specified!');
     }
     // Basic configuration
     $this->setSourceType(LISTBUILDER_SOURCE_TYPE_TEXT);
     $this->setSaveType(LISTBUILDER_SAVE_TYPE_EXTERNAL);
     $this->setSaveFieldName('localeKeys');
     self::$plugin->import('controllers.listbuilder.LocaleFileListbuilderGridCellProvider');
     $cellProvider = new LocaleFileListbuilderGridCellProvider($this->locale);
     // Key column
     $this->addColumn(new ListbuilderGridColumn($this, 'key', 'plugins.generic.translator.localeKey', null, self::$plugin->getTemplatePath() . 'localeFileKeyGridCell.tpl', $cellProvider, array('tabIndex' => 1)));
     // Value column (custom template displays English text)
     $this->addColumn(new ListbuilderGridColumn($this, 'value', 'plugins.generic.translator.localeKeyValue', null, self::$plugin->getTemplatePath() . 'localeFileValueGridCell.tpl', $cellProvider, array('tabIndex' => 2, 'width' => 70, 'alignment' => COLUMN_ALIGNMENT_LEFT)));
 }
开发者ID:bozana,项目名称:translator,代码行数:29,代码来源:LocaleFileListbuilderHandler.inc.php


示例15: fatalError

 /**
  * Load configuration data from a file.
  * The file is assumed to be formatted in php.ini style.
  * @return array the configuration data
  */
 function &reloadData()
 {
     if (($configData =& ConfigParser::readConfig(Config::getConfigFileName())) === false) {
         fatalError(sprintf('Cannot read configuration file %s', Config::getConfigFileName()));
     }
     return $configData;
 }
开发者ID:master3395,项目名称:CBPPlatform,代码行数:12,代码来源:Config.inc.php


示例16: sendItemWonNotification

 public static function sendItemWonNotification(Auction $auction)
 {
     $content = 'You won auction: ' . $auction->name;
     if (is_null($auction->buyer())) {
         fatalError("Won auction had no buyer");
     }
     self::sendNotification($content, $auction->buyer()->id, $auction->id, NotificationType::itemWon());
 }
开发者ID:sampayne,项目名称:COMP3013,代码行数:8,代码来源:NotificationSender.php


示例17: TypeDescription

 /**
  * Constructor
  *
  * @param $typeName string A plain text type name to be parsed
  *  by this type description class.
  *
  *  Type names can be any string. This base class provides a basic
  *  implementation for type cardinality (array-types) which can
  *  be re-used by all subclasses.
  *
  *  We currently do not support heterogeneous or multi-dimensional arrays
  *  because we don't have corresponding use cases. We may, however, expand
  *  our syntax later to accommodate that.
  *
  *  If you do not know the exact count of an array then you can leave the
  *  parentheses empty ([]).
  */
 function TypeDescription($typeName)
 {
     $this->_typeName = $typeName;
     if (!$this->_parseTypeNameInternally($typeName)) {
         // Invalid type
         fatalError('Trying to instantiate a "' . $this->getNamespace() . '" type description with an invalid type name "' . $typeName . '".');
     }
 }
开发者ID:yuricampos,项目名称:ojs,代码行数:25,代码来源:TypeDescription.inc.php


示例18: setTransformationType

 /**
  * @see Filter::setTransformationType()
  * @see GenericFilter::setTransformationType()
  */
 function setTransformationType($inputType, $outputType)
 {
     // Intercept setTransformationType() to check that we
     // only get xml input, the output type is arbitrary.
     if (!substr($inputType, 0, 5) == 'xml::') {
         fatalError('XSL filters need XML as input.');
     }
     parent::setTransformationType($inputType, $outputType);
 }
开发者ID:JovanyJeff,项目名称:hrp,代码行数:13,代码来源:XSLTransformationFilter.inc.php


示例19: EditLibraryFileForm

 /**
  * Constructor.
  * @param $contextId int
  * @param $fileType int LIBRARY_FILE_TYPE_...
  * @param $fileId int optional
  */
 function EditLibraryFileForm($contextId, $fileId)
 {
     parent::LibraryFileForm('controllers/grid/settings/library/form/editFileForm.tpl', $contextId);
     $libraryFileDao = DAORegistry::getDAO('LibraryFileDAO');
     $this->libraryFile = $libraryFileDao->getById($fileId);
     if (!$this->libraryFile || $this->libraryFile->getContextId() !== $this->contextId) {
         fatalError('Invalid library file!');
     }
 }
开发者ID:doana,项目名称:pkp-lib,代码行数:15,代码来源:EditLibraryFileForm.inc.php


示例20: setReturnType

 /**
  * Set the return type
  * @param $returnType integer
  */
 function setReturnType($returnType)
 {
     if ($returnType == XSL_TRANSFORMER_DOCTYPE_DOM) {
         if (!extension_loaded('dom')) {
             fatalError('This system does not meet minimum requirements!');
         }
     }
     $this->_returnType = $returnType;
 }
开发者ID:relaciones-internacionales-journal,项目名称:pkp-lib,代码行数:13,代码来源:XmlWebService.inc.php



注:本文中的fatalError函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP fatal_error函数代码示例发布时间:2022-05-15
下一篇:
PHP fatal函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap