• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MY_Model Base CRUD Model

#14
[eluser]megabyte[/eluser]
Quote:Tutorial
I’ve written a tutorial that takes a reasonable look at the functionality provided by the entire class, as well as my MY_Controller Controller System on my delightful blog. Check it out and feel free to leave a comment.

Your website has changed. Can you give an update on where your tutorial is for your MY_Model please.

I'm trying to learn more about it. Specifically:

Code:
/**
     * Runs the before create actions.
     *
     * @param array $data The array of actions
     * @return void
     * @author Jamie Rumbelow
     */
    private function _run_before_create($data) {
        foreach ($this->before_create as $method) {
            $data = call_user_func_array(array($this, $method), array($data));
        }
        
        return $data;
    }
    
    /**
     * Runs the after create actions.
     *
     * @param array $data The array of actions
     * @return void
     * @author Jamie Rumbelow
     */
    private function _run_after_create($data, $id) {
        foreach ($this->after_create as $method) {
            call_user_func_array(array($this, $method), array($data, $id));
        }
    }


Thanks.


Messages In This Thread
MY_Model Base CRUD Model - by El Forum - 11-08-2009, 07:02 AM
MY_Model Base CRUD Model - by El Forum - 11-08-2009, 07:43 AM
MY_Model Base CRUD Model - by El Forum - 11-08-2009, 10:58 AM
MY_Model Base CRUD Model - by El Forum - 11-08-2009, 11:01 AM
MY_Model Base CRUD Model - by El Forum - 11-08-2009, 05:06 PM
MY_Model Base CRUD Model - by El Forum - 11-09-2009, 09:05 AM
MY_Model Base CRUD Model - by El Forum - 11-09-2009, 12:15 PM
MY_Model Base CRUD Model - by El Forum - 11-09-2009, 12:28 PM
MY_Model Base CRUD Model - by El Forum - 12-02-2009, 03:09 AM
MY_Model Base CRUD Model - by El Forum - 12-02-2009, 03:22 AM
MY_Model Base CRUD Model - by El Forum - 12-17-2009, 05:02 PM
MY_Model Base CRUD Model - by El Forum - 12-18-2009, 07:19 AM
MY_Model Base CRUD Model - by El Forum - 12-18-2009, 07:48 AM
MY_Model Base CRUD Model - by El Forum - 01-04-2010, 01:28 PM
MY_Model Base CRUD Model - by El Forum - 01-04-2010, 04:36 PM
MY_Model Base CRUD Model - by El Forum - 01-04-2010, 08:37 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 02:16 AM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 02:57 AM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 03:19 AM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 03:27 AM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 12:37 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 12:43 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 12:46 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 12:48 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 12:52 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 12:59 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 01:12 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 03:31 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 04:15 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 04:26 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 08:20 PM
MY_Model Base CRUD Model - by El Forum - 01-23-2010, 06:36 PM
MY_Model Base CRUD Model - by El Forum - 03-06-2010, 09:20 AM
MY_Model Base CRUD Model - by El Forum - 03-09-2010, 05:43 AM
MY_Model Base CRUD Model - by El Forum - 03-09-2010, 05:46 AM
MY_Model Base CRUD Model - by El Forum - 03-09-2010, 05:59 AM
MY_Model Base CRUD Model - by El Forum - 03-09-2010, 08:30 AM
MY_Model Base CRUD Model - by El Forum - 03-09-2010, 08:46 AM
MY_Model Base CRUD Model - by El Forum - 03-23-2010, 08:17 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 05:11 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 05:24 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 06:03 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 06:10 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 06:21 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 06:28 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 12:06 PM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 12:14 PM
MY_Model Base CRUD Model - by El Forum - 05-10-2010, 09:22 AM
MY_Model Base CRUD Model - by El Forum - 05-10-2010, 12:47 PM
MY_Model Base CRUD Model - by El Forum - 05-11-2010, 10:40 AM
MY_Model Base CRUD Model - by El Forum - 05-11-2010, 10:55 AM
MY_Model Base CRUD Model - by El Forum - 05-27-2010, 07:04 PM
MY_Model Base CRUD Model - by El Forum - 05-28-2010, 02:12 AM
MY_Model Base CRUD Model - by El Forum - 06-03-2010, 01:15 AM
MY_Model Base CRUD Model - by El Forum - 06-03-2010, 02:36 AM
MY_Model Base CRUD Model - by El Forum - 06-03-2010, 01:29 PM
MY_Model Base CRUD Model - by El Forum - 08-02-2010, 04:25 AM
MY_Model Base CRUD Model - by El Forum - 08-10-2010, 09:52 PM
MY_Model Base CRUD Model - by El Forum - 05-03-2012, 03:58 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.