本文整理汇总了PHP中Schedule::findAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Schedule::findAll方法的具体用法?PHP Schedule::findAll怎么用?PHP Schedule::findAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Schedule
的用法示例。
在下文中一共展示了Schedule::findAll方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rec_default
/**
* Revert a show to its default recording schedule settings
/**/
public function rec_default()
{
$schedule =& Schedule::findAll($this->recordid);
if ($schedule && ($schedule->type == rectype_override || $schedule->type == rectype_dontrec)) {
$schedule->delete();
}
}
示例2: array
* @license GPL
*
* @package MythWeb
* @subpackage TV
*
**/
// Scheduling a manual recording gets its own page
if ($Path[2] == 'manual' || $Path[2] == 'custom') {
require_once 'modules/tv/schedules_' . $Path[2] . '.php';
exit;
}
// Load the sorting routines
require_once 'includes/sorting.php';
// Parse the recording list
$the_schedules = array();
foreach (Schedule::findAll() as $key) {
$schedule =& Schedule::find($key);
// Ignore overrides
# if ($schedule->type == rectype_override)
# continue;
# if ($schedule->type == rectype_dontrec)
# continue;
// Ignore manual schedules
# if ($schedule->category == 'Manual recording')
# continue;
// Couple of modifications
if ($schedule->type == rectype_dontrec) {
$schedule->profile = '';
$schedule->recgroup = '';
}
// Add a blank channel, to suppress warnings