title: PHP Static Method Using Private Class Functions/Variables
body: <p>If I write a public static method in a class ie...</p>
  
  <pre><code>public static function get_info($type){
          switch($type){
              case'title':
                  self::get_title(); 
                  break;
          }
      }
  </code></pre>
  
  <p>I have to write my get_title() function as public...</p>
  
  <pre><code>public static function get_title(){
          return 'Title';
      }
  </code></pre>
  
  <p>Otherwise I get the error:</p>
  
  <pre><code>Call to private method Page::get_title()
  </code></pre>
  
  <p>Which makes me feel as though the function <code>get_info()</code> is essentially redundant.  I'd like to be able to make a call from a static method to a private method inside my class for validation purposes.  Is this impossible?</p>
  
  <p>PHP > 5.0 btw.</p>
  
  <p>!####### EDIT SOLUTION (BUT NOT ANSWER TO QUESTION) #########!</p>
  
  <p>In case you are curious, my workaround was to instantiate my static function's class inside the static function.</p>
  
  <p>So, the class name was Page I would do this...</p>
  
  <pre><code>public static function get_info($type){
              $page = new Page();
              switch($type){
                  case'title':
                      $page-&gt;get_title(); 
                      break;
              }
          }
    public function get_title(){
              return 'Title';
          }
  </code></pre>