Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
cron_job_squid_cache_purge_edit_fns.inc
1 <?php
17 require_once SQ_CORE_PACKAGE_PATH.'/system/cron/cron_job/cron_job_edit_fns.inc';
18 
31 {
32 
33 
38  function __construct()
39  {
40  parent::__construct();
41 
42  }//end constructor
43 
44 
57  public function paintInLineBackend(Asset $asset, Backend_Outputter $o, $prefix, $when='', $form_extra_elements='')
58  {
59  $preposition = ($asset->attr('type') == 'one_off') ? translate('squid_clear_at') : translate('squid_clear_every');
60  echo translate('squid_clear_this', $preposition);
61  $this->_paintWhenBox($asset, $o, $prefix, $when, $form_extra_elements);
62 
63  return TRUE;
64 
65  }//end paintInLineBackend()
66 
67 
78  public function processInLineBackend(Asset $asset, Backend_Outputter $o, $prefix)
79  {
80  $when = $this->_processWhenBox($asset, $o, $prefix);
81  if ($when) {
82  return $asset->setAttrValue('when', $when);
83  } else {
84  return FALSE;
85  }
86 
87  }//end processInLineBackend()
88 
89 
90 }//end class
91 
92 ?>