Overview

Namespaces

  • LucidFrame
    • Console
    • Core
    • File
  • None

Functions

  • __autoloadHelper
  • _addFormData
  • _addHeadScript
  • _addHeadStyle
  • _addJsVar
  • _app
  • _arg
  • _arrayAssoc
  • _asynFileUploader
  • _autoloadDir
  • _baseDirs
  • _baseUrlWithProtocol
  • _breadcrumb
  • _canonical
  • _cfg
  • _cfgOption
  • _cipher
  • _consoleCommand
  • _consoleCommands
  • _consoleTable
  • _cr
  • _css
  • _decrypt
  • _defaultLang
  • _defaultQueryLang
  • _dir
  • _dpr
  • _ds
  • _dump
  • _en2myNum
  • _encrypt
  • _entity
  • _env
  • _fdate
  • _fdatetime
  • _fileHelper
  • _filesize
  • _filterArrayEmpty
  • _fnum
  • _fnumReverse
  • _fnumSmart
  • _fstr
  • _ftimeAgo
  • _g
  • _get
  • _getLang
  • _getLangInURI
  • _getTranslationStrings
  • _h
  • _header
  • _host
  • _hreflang
  • _i
  • _image
  • _img
  • _indent
  • _isAjax
  • _isBot
  • _isHttpPost
  • _isRewriteRule
  • _js
  • _json
  • _lang
  • _langName
  • _langs
  • _loader
  • _mail
  • _meta
  • _metaSeoTags
  • _middleware
  • _minifyHTML
  • _msg
  • _multilingual
  • _notEmpty
  • _nullFill
  • _p
  • _page401
  • _page403
  • _page404
  • _pager
  • _patch
  • _post
  • _postTranslationStrings
  • _pr
  • _protocol
  • _put
  • _queryLang
  • _r
  • _randomCode
  • _redirect
  • _redirect301
  • _requestHeader
  • _requestHeaders
  • _rr
  • _sanitize
  • _schema
  • _script
  • _self
  • _shorten
  • _slug
  • _sqlDate
  • _ssl
  • _t
  • _tc
  • _title
  • _unloader
  • _url
  • _urlLang
  • _validHost
  • _version
  • _view
  • _write
  • _writeln
  • _xss
  • auth_can
  • auth_clear
  • auth_create
  • auth_get
  • auth_getUserInfo
  • auth_isAnonymous
  • auth_isLoggedIn
  • auth_namespace
  • auth_permissions
  • auth_prerequisite
  • auth_role
  • auth_roles
  • auth_set
  • cookie_delete
  • cookie_get
  • cookie_set
  • db_and
  • db_avg
  • db_close
  • db_collation
  • db_commit
  • db_count
  • db_delete
  • db_delete_multi
  • db_disableForeignKeyCheck
  • db_enableForeignKeyCheck
  • db_engine
  • db_error
  • db_errorNo
  • db_escapeString
  • db_extract
  • db_fetch
  • db_fetchArray
  • db_fetchAssoc
  • db_fetchObject
  • db_fetchResult
  • db_find
  • db_findAll
  • db_findBy
  • db_findOneBy
  • db_findOneByOrFail
  • db_findOrFail
  • db_findWithPager
  • db_host
  • db_insert
  • db_insertId
  • db_insertSlug
  • db_max
  • db_min
  • db_name
  • db_numRows
  • db_or
  • db_prefix
  • db_prq
  • db_query
  • db_queryStr
  • db_raw
  • db_rollback
  • db_save
  • db_select
  • db_setCharset
  • db_setForeignKeyCheck
  • db_sum
  • db_switch
  • db_table
  • db_tableHasSlug
  • db_tableHasTimestamps
  • db_transaction
  • db_truncate
  • db_update
  • db_user
  • flash_get
  • flash_set
  • form_checked
  • form_htmlValue
  • form_init
  • form_respond
  • form_selected
  • form_set
  • form_token
  • form_validate
  • form_value
  • route
  • route_contain
  • route_equal
  • route_except
  • route_group
  • route_name
  • route_path
  • route_search
  • route_start
  • route_updateQueryStr
  • route_url
  • session_delete
  • session_get
  • session_set
  • validate_alphaNumeric
  • validate_alphaNumericDash
  • validate_alphaNumericSpace
  • validate_between
  • validate_custom
  • validate_date
  • validate_datetime
  • validate_domain
  • validate_email
  • validate_fileExactDimension
  • validate_fileExtension
  • validate_fileMaxDimension
  • validate_fileMaxHeight
  • validate_fileMaxSize
  • validate_fileMaxWidth
  • validate_integer
  • validate_ip
  • validate_mandatory
  • validate_mandatoryAll
  • validate_mandatoryOne
  • validate_max
  • validate_maxLength
  • validate_min
  • validate_minLength
  • validate_naturalNumber
  • validate_notAllowZero
  • validate_numeric
  • validate_numericDash
  • validate_numericSpace
  • validate_positiveRationalNumber
  • validate_rationalNumber
  • validate_time
  • validate_unique
  • validate_url
  • validate_username
  • validate_wholeNumber
  • validation_addError
  • validation_check
  • validation_get
  • validation_set
  • Overview
  • Namespace
  • Function

Function db_findOrFail

Get a single entity result where the primary key matches the value passed in as the second parameter for the table name in the first parameter OR throws 404 if any result is not found.

Package: PHPLucidFrame\Core
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Located at helpers/db_helper.mysqli.php
Parameters summary
string $table The table name to fetch data from
integer $id The value of the primary key to match
Return value summary
mixed mixed
PHPLucidFrame 3.2 API documentation generated by ApiGen