Created
January 2, 2010 23:45
-
-
Save rich/267727 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$config['profile.created'] = array( | |
array('library', 'point_events', 'assign_points', 100) | |
); | |
$config['question.deleted'] = array( | |
array('model', 'answers', 'question_deleted') | |
); | |
$config['answer.created'] = array( | |
array('library', 'point_events', 'assign_points', 5), | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Point_events { | |
var $CI; | |
function __construct () { | |
$this->CI =& get_instance(); | |
} | |
function assign_points ($args, $points, $event) { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$CI->events->send('profile.created', array('profile' => $profile)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment