Tuskfish API V1.1.1
  • Package
  • Class

Packages

  • content
  • core
  • database
  • installation
  • security
  • user
  • utilities

Classes

  • someClass
  • someClassHandler
  • TfArticle
  • TfAudio
  • TfBlock
  • TfBlockHandler
  • TfCache
  • TfCollection
  • TfCollectionHandler
  • TfContentHandler
  • TfContentHandlerFactory
  • TfContentObject
  • TfCriteria
  • TfCriteriaFactory
  • TfCriteriaItem
  • TfDatabase
  • TfDownload
  • TfFileHandler
  • TfImage
  • TfLogger
  • TfMetadata
  • TfPaginationControl
  • TfPreference
  • TfPreferenceHandler
  • TfRss
  • TfSearchContent
  • TfSession
  • TfStatic
  • TfTag
  • TfTagHandler
  • TfTaglinkHandler
  • TfTemplate
  • TfTree
  • TfUser
  • TfUtils
  • TfValidator
  • TfValidatorFactory
  • TfVideo
  • TfYubikeyAuthenticator

Traits

  • TfContentTypes
  • TfLanguage
  • TfMagicMethods
  • TfMimetypes

Functions

  • checkPasswordStrength
  • getUrl
  • hashPassword
  • tf_autoload
  • tfContentModuleAutoload
  • tfSomeModuleAutoload
 1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 
<?php
/**
 * Tuskfish someModule header script. Must be included on someModule pages.
 * 
 * Includes module-specific resources such as classes, forms and language constants.
 *
 * @copyright   Your name 2018+ (https://yoursite.com)
 * @license     https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html GNU General Public License (GPL) V2
 * @author      Your name <[email protected]>
 * @since       1.0
 * @package     core
 */
// Enable strict type declaration.
declare(strict_types=1);

// Set module-specific paths.
define("TFISH_SOME_MODULE_PATH", TFISH_TRUST_PATH . 'modules/someModule/');
define("TFISH_SOME_MODULE_FORM_PATH", TFISH_SOME_MODULE_PATH . 'form/');
define("TFISH_SOME_MODULE_LANGUAGE_PATH", TFISH_SOME_MODULE_PATH . 'language/');

// Make module language files available.
include TFISH_SOME_MODULE_LANGUAGE_PATH . 'english.php';
/**
 * Autoload Tuskfish content module classes. spl_autoload_register() avoids namespace clashes.
 * @param string $classname Name of class to autoload. 
 */
function tfSomeModuleAutoload(string $classname) {
    if (is_file(TFISH_SOME_MODULE_PATH . 'class/' . $classname . '.php')) {
        include TFISH_SOME_MODULE_PATH . 'class/' . $classname . '.php';
    }
}
spl_autoload_register('tfSomeModuleAutoload');
Tuskfish API V1.1.1 API documentation generated by ApiGen