topical media & game development
[] readme course(s) preface I 1 2 II 3 4 III 5 6 7 IV 8 9 10 V 11 12 afterthought(s) appendix reference(s) example(s) resource(s) _

talk show tell print

portal-classes-core.common.php



  <?PHP
  error_reporting(E_ALL);
  
  class Common {
  
          var core;
          
          function Common (&core) {
                  this->core = &core;
          }
          
          function cutText(string, lenght) {
                  if(strlen(string) > lenght) {
                          string = substr(string, 0, lenght).'...';
                  }
                  return string;
          }
          
          
  
  }
  ?>


(C) A. Eliëns 2/9/2007

You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.