original_string: public function addStaticStylesheet($file, $ext = '.css', $locate = 'css')
      {
          //$file=$this->app->locateURL('css',$file.$ext);
          if (@$this->included[$locate.'-'.$file.$ext]++) {
              return;
          }
  
          if (strpos($file, 'http') !== 0 && $file[0] != '/') {
              $url = $this->app->locateURL($locate, $file.$ext);
          } else {
              $url = $file;
          }
  
          $this->app->template->appendHTML(
              'js_include',
              '<link type="text/css" href="'.$url.'" rel="stylesheet" />'."\n"
          );
  
          return $this;
      }
code: public function addStaticStylesheet($file, $ext = '.css', $locate = 'css')
      {
          //$file=$this->app->locateURL('css',$file.$ext);
          if (@$this->included[$locate.'-'.$file.$ext]++) {
              return;
          }
  
          if (strpos($file, 'http') !== 0 && $file[0] != '/') {
              $url = $this->app->locateURL($locate, $file.$ext);
          } else {
              $url = $file;
          }
  
          $this->app->template->appendHTML(
              'js_include',
              '<link type="text/css" href="'.$url.'" rel="stylesheet" />'."\n"
          );
  
          return $this;
      }
code_tokens: public function addStaticStylesheet ( $ file , $ ext = '.css' , $ locate = 'css' ) { //$file=$this->app->locateURL('css',$file.$ext); if ( @ $ this -> included [ $ locate . '-' . $ file . $ ext ] ++ ) { return ; } if ( strpos ( $ file , 'http' ) !== 0 && $ file [ 0 ] != '/' ) { $ url = $ this -> app -> locateURL ( $ locate , $ file . $ ext ) ; } else { $ url = $ file ; } $ this -> app -> template -> appendHTML ( 'js_include' , '<link type="text/css" href="' . $ url . '" rel="stylesheet" />' . "\n" ) ; return $ this ; }
docstring: Adds static stylesheet
  
  @param string $file
  @param string $ext
  @param string $locate
  
  @return $this
docstring_tokens: Adds static stylesheet