oop
Stuck in CodeIgniter Controller class implementation
I am recoding my site using CodeIgniter. This is my first time using an MVC or any other type of development pattern. I am using the video tutorials off of the CI site to make a playground and get acq[详细]
2023-04-11 05:34 分类:问答class variables - when to use them
How does one know when to put variables into the class rather than inside the class functions? For example - This database class is instantiated by its sub-class and it also instantiates its sub-class[详细]
2023-04-11 05:23 分类:问答C# Custom Observable Collection - Should I use Composition or Inheritance?
I want to create a custom observable collection (can be bound to in XAML), but I want to track additional information which requires overriding observable collection methods. ObservableCollection meth[详细]
2023-04-11 04:41 分类:问答create new variables in class how can i change variable names?
I want to create new variable but name as $class.. For example my $class is: array(\"veriekle\",\"vericek\",\"sayfala\");[详细]
2023-04-11 04:39 分类:问答Object Oriented Design: Is it good to restrict I/O parameters?
I am designing a system for Social Activity Streams and I am aiming to keep it independent and plug-able as much as I can. Since it is about Activity Strams so here is the initial design. I am willing[详细]
2023-04-11 03:38 分类:问答PHP Call Function in a Class - Is there a simpler way?
I am very new to OOP and very rusty on PHP. I was wondering if this is a valid method to call a function from a class?[详细]
2023-04-11 03:34 分类:问答Can't get constant from dynamic class using namespaces
I\'m not able to get a constant from a class which is defined by using a string variable and PHP 5.3. namespaces. Example:[详细]
2023-04-11 03:20 分类:问答AS3 - extend a function?
I have an Entity class with a destroy() function. I also have an Enemy class that extends E开发者_StackOverflowntity, and I want to add some lines to the destroy() function.[详细]
2023-04-11 02:47 分类:问答Set a list name in a class, using a function
I have a class to import data from a CSV file, and a function that takes the filename and a name for the output list. I want to set the name of the self.data_name to be self.info using the setattr() f[详细]
2023-04-11 02:37 分类:问答Basic IOS OOP - structure and implementation
I am creating a basic guessing game in iOS for my kids, and I think there are some fundamental gaps in my understanding of how I should be creating and releasing objects throughout the lifecycle of th[详细]
2023-04-11 02:19 分类:问答