Overview

Packages

  • None
  • Yaga

Functions

  • ActionRow
  • AgeArray
  • RenderPerkConfigurationForm
  • RenderPerkPermissionForm
  • RenderReactionList
  • RenderReactionRecord
  • WriteModuleDiscussion
  • WritePromotedContent
  • Overview
  • Package
  • Function
  • Tree
  • Todo
  • Download
 1: <?php if (!defined('APPLICATION')) exit();
 2: /**
 3:  * A collection of hooks that are enabled when Yaga is.
 4:  * 
 5:  * @package Yaga
 6:  * @since 1.0
 7:  * @copyright (c) 2014, Zachary Doll
 8:  */
 9: 
10: if(!function_exists('AgeArray')) {
11:   /**
12:    * Defines the age options array for use in perks
13:    * 
14:    * @return array
15:    */
16:   function AgeArray() {
17:     return array(
18:         strtotime('0 seconds', 0) => T('Yaga.Perks.AgeDNC'),
19:         strtotime('1 hour', 0) => sprintf(T('Yaga.AgeFormat'), T('1 hour')),
20:         strtotime('1 day', 0) => sprintf(T('Yaga.AgeFormat'), T('1 day')),
21:         strtotime('1 week', 0) => sprintf(T('Yaga.AgeFormat'), T('1 week')),
22:         strtotime('1 month', 0) => sprintf(T('Yaga.AgeFormat'), T('1 month')),
23:         strtotime('3 months', 0) => sprintf(T('Yaga.AgeFormat'), T('3 months')),
24:         strtotime('6 months', 0) => sprintf(T('Yaga.AgeFormat'), T('6 months')),
25:         strtotime('1 year', 0) => sprintf(T('Yaga.AgeFormat'), T('1 year')),
26:         strtotime('5 years', 0) => sprintf(T('Yaga.AgeFormat'), T('5 years'))
27:     );
28:   }
29: }
30: 
Yaga API documentation generated by ApiGen 2.8.0