function Welcome()
{
    parrent::controllers();
    //Menginisialisasi/mengaktifkan class testing
    //yang sudah terdapat di dalam framework CodeIgniter
    $this->load->library('unit_test');
    //Memanggil fungsi Teks
    $this->Test();
    echo $this->unit->report();
}
 public function seek($position)
 {
     if (!is_null($this->_cacheData)) {
         $position = (int) $position;
         if ($position < 0 || $position > $this->count()) {
             throw new Zend_Db_Table_Rowset_Exception("Illegal index {$position}");
         }
         $this->_pointer = $position;
         return $this;
     } else {
         return parrent::seek($position);
     }
 }
Beispiel #3
0
 public function unlink_from_context($id_extend_field, $context, $id_context = NULL)
 {
     $where = array('id_extend_field' => $id_extend_field, 'context' => $context);
     if (!is_null($id_context)) {
         $where['id_context'] = $id_context;
     }
     if ($this->exists($where, self::$_CONTEXT_TABLE)) {
         parrent::delete($where, self::$_CONTEXT_TABLE);
     }
 }
Beispiel #4
0
 function Blog()
 {
     parrent::Controller();
     $this->load->helper('url');
     $this->load->helper('form');
 }