Welcome Guest, Not a member yet? Register   Sign In
General library question
#13

[eluser]xadio[/eluser]
@tomcode: Yea no significant speed decreases, but I haven't run a full test. Thanks for all your help tomcode!

@Zacharias: I have decided not submit my project yet because it is still in design and I will get flamed when people know what it is. The pieces that I am working on have to deal with (GoF) (Abstract) Factory and (GoF) Singleton Design Patterns.

Code:
(abstract) class Factory {
  public $validate;
  private function __construct() {} //do some validation
  private function inventoryProducts() {} //do some inventory and cache products
}

class SomeFactory extends Factory {
  public $product;
  public function __contruct($someProduct) {} //return the appropriate product
  //...
}

abstract class SomeProducts {
//...
}

class SomeProductA {
//...
}

class SomeProductB {
//...
}

So as you can see Factory is essentially a Singleton or abstract, and probably will never need to be called. However, I need to require this because load->library will initialize the instance. SomeFactory is a (concrete) factory producing some concrete products depending on how it is initialized.

So CI works well, but it puts a damper on some of what I want/need.


Messages In This Thread
General library question - by El Forum - 02-05-2008, 05:11 PM
General library question - by El Forum - 02-05-2008, 08:31 PM
General library question - by El Forum - 02-05-2008, 09:03 PM
General library question - by El Forum - 02-05-2008, 10:02 PM
General library question - by El Forum - 02-05-2008, 10:58 PM
General library question - by El Forum - 02-06-2008, 09:41 AM
General library question - by El Forum - 02-06-2008, 10:40 AM
General library question - by El Forum - 02-06-2008, 11:13 AM
General library question - by El Forum - 02-06-2008, 11:26 AM
General library question - by El Forum - 02-06-2008, 11:37 AM
General library question - by El Forum - 02-06-2008, 12:00 PM
General library question - by El Forum - 02-06-2008, 12:05 PM
General library question - by El Forum - 02-06-2008, 05:08 PM
General library question - by El Forum - 02-06-2008, 05:25 PM
General library question - by El Forum - 02-06-2008, 05:26 PM
General library question - by El Forum - 02-06-2008, 11:14 PM
General library question - by El Forum - 02-07-2008, 07:06 PM
General library question - by El Forum - 02-07-2008, 07:27 PM
General library question - by El Forum - 02-10-2008, 11:24 AM
General library question - by El Forum - 02-10-2008, 10:31 PM
General library question - by El Forum - 02-10-2008, 10:34 PM
General library question - by El Forum - 02-11-2008, 08:52 AM
General library question - by El Forum - 02-11-2008, 10:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB