Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 16537 программистов и 1674 робота. Сейчас ищут 1713 программистов ...
File_Fortune
Вернуться к: Форматы файлов
- Class Summary File_Fortune — File_Fortune
- Introduction — File_Fortune aims to provide a simple OOP and array-like interface to fortune files. To this end, it implements the SPL interfaces Iterator, Countable, and ArrayAccess. With it, you may easily create and maintain fortune databases, as well as fulfill their primary use case: getting a random fortune.
- Examples — Common use cases.
- File_Fortune::__construct — Constructor
- File_Fortune::add — Add a new fortune
- File_Fortune::create — Create a new fortune file from an array of fortunes
- File_Fortune::delete — Delete an existing fortune
- File_Fortune::getAll — Retrieve all fortunes from the current file
- File_Fortune::getDirectory — Retrieve current directory of fortune files
- File_Fortune::getFile — Retrieve current fortune file name
- File_Fortune::getFiles — Retrieve list of currently set fortune files
- File_Fortune::getHeaderFile — Retrieve current header file name
- File_Fortune::getRandom — Retrieve random fortune
- File_Fortune::save — Save changes
- File_Fortune::setDirectory — Set directory from which to randomly select a fortune file
- File_Fortune::setFile — Set fortune file
- File_Fortune::setFiles — Set multiple fortune files
- File_Fortune::setHeaderFile — Set header file name
- File_Fortune::update — Update an existing fortune
Вернуться к: Форматы файлов