Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/classes/Model/packet.php
<?php defined('SYSPATH') or die('No direct access allowed.');

class Model_Packet extends ORM {

	public static function get_packet_name( $packet_id ) {
   
		$packet = ORM::Factory('packet', $packet_id);
		
		return $packet->name;
   
   }

 
   public static function get_feature( $feature_id, $packet_id ) {
   
		$power_features = ORM::Factory('power_feature')->where('feature_id','=', $feature_id)->where('packet_id','=', $packet_id)->find_all();
		
		return $power_features;
   
   }
}