/** * Registers an activity provider * * Usage. Activity::register('issues', array('class_name' => array('Issue', 'Journal'))); * * @param event_type : like a table name. ex.issues * @param options : Relation of table name between class name has not followed to designation rule when and, * when we would like to register the plural tables, class_name is appointed. */ function register($event_type, $options = array()) { $_this =& Activity::getInstance(); $_this->_register($event_type, $options); }
/** * Resets the scope to the default scope */ function default_scope() { $this->scope = Activity::getInstance()->default_event_types; return $this->scope; }