Permalink
Browse files

build out the CI notifier a bit

  • Loading branch information...
1 parent 12c7768 commit f7b822ff6e8cc7784fa0abc97b53505571119dfc @rich rich committed Jan 24, 2010
Showing with 19 additions and 0 deletions.
  1. +19 −0 Services/Hoptoad/CodeIgniter.php
@@ -1,3 +1,22 @@
<?php
class Services_Hoptoad_CodeIgniter extends Services_Hoptoad {
+ var $ci;
+
+ function ci() {
+ if (isset($this->ci)) return $this->ci;
+ $this->ci =& get_instance();
+ return $this->ci;
+ }
+
+ function action() {
+ return $this->ci()->router->method;
+ }
+
+ function component() {
+ return $this->ci()->router->class;
+ }
+
+ function project_path() {
+ return APPPATH;
+ }
}

0 comments on commit f7b822f

Please sign in to comment.