mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00

- add james-heinrich/getid3 library as a dependency to composer.json - update DEPENDENCIES.md file - fix episodes table migration script - add js devDependencies: prettier, @prettier/plugin-php and lint-staged to automatically format staged files before commit - reformat all files to the prettier format - refactor code by separating some logic as helper functions - overwrite existing files when uploading new files with the same name fixes #1
35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
<?php namespace Config;
|
|
|
|
class View extends \CodeIgniter\Config\View
|
|
{
|
|
/**
|
|
* When false, the view method will clear the data between each
|
|
* call. This keeps your data safe and ensures there is no accidental
|
|
* leaking between calls, so you would need to explicitly pass the data
|
|
* to each view. You might prefer to have the data stick around between
|
|
* calls so that it is available to all views. If that is the case,
|
|
* set $saveData to true.
|
|
*/
|
|
public $saveData = true;
|
|
|
|
/**
|
|
* Parser Filters map a filter name with any PHP callable. When the
|
|
* Parser prepares a variable for display, it will chain it
|
|
* through the filters in the order defined, inserting any parameters.
|
|
* To prevent potential abuse, all filters MUST be defined here
|
|
* in order for them to be available for use within the Parser.
|
|
*
|
|
* Examples:
|
|
* { title|esc(js) }
|
|
* { created_on|date(Y-m-d)|esc(attr) }
|
|
*/
|
|
public $filters = [];
|
|
|
|
/**
|
|
* Parser Plugins provide a way to extend the functionality provided
|
|
* by the core Parser by creating aliases that will be replaced with
|
|
* any callable. Can be single or tag pair.
|
|
*/
|
|
public $plugins = [];
|
|
}
|