예제 #1
0
파일: price.php 프로젝트: Ramoonus/ingot
 /**
  * Refresh an expired test
  *
  * @since 0.0.9
  *
  * @access protected
  *
  * @param int $sequence_id
  */
 protected function refresh_test($sequence_id)
 {
     if (array_key_exists($sequence_id, $this->current_sequences)) {
         $sequence = $this->current_sequences[$sequence_id];
     } else {
         $sequence = sequence::read($sequence_id);
     }
     if (is_array($sequence)) {
         $this->add_test($sequence);
     }
 }
예제 #2
0
파일: init.php 프로젝트: Ramoonus/ingot
 /**
  * Collect the tests we need
  *
  * @since 0.2.0
  *
  * @access protected
  *
  * @return array
  */
 protected function collect_sequence()
 {
     $args = array('price_test' => true, 'current' => true, 'limit' => -1);
     $active_sequences = \ingot\testing\crud\sequence::get_items($args);
     return $active_sequences;
 }