Development

Changeset 28259

You must first sign up to be able to contribute.

Changeset 28259

Show
Ignore:
Timestamp:
02/25/10 00:26:15 (3 years ago)
Author:
bshaffer
Message:

changes private methods to protected (for overriding)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/csGlossaryPlugin/trunk/lib/csGlossary.class.php

    r17508 r28259  
    2727    return str_split($this->alphabet); 
    2828  } 
     29   
    2930  public function getGlossaryCollection() 
    3031  { 
     
    3637    return $this->glossary; 
    3738  } 
     39   
    3840  public function getForLetter($letter) 
    3941  { 
     
    4547    return $this->glossary[$letter]; 
    4648  } 
     49   
    4750  public function getActiveAlphabet() 
    4851  { 
     
    6164  // = Private Functions = 
    6265  // ===================== 
    63   private function addCollectionToGlossary($collection) 
     66  protected function addCollectionToGlossary($collection) 
    6467  { 
    6568    foreach ($collection as $object)  
     
    6871    } 
    6972  } 
    70   private function addObjectToGlossary($object) 
     73   
     74  protected function addObjectToGlossary($object) 
    7175  { 
    7276    $value = $this->getObjectValue($object); 
     
    9094  } 
    9195 
    92   private function getGlossaryQuery($table, $field, $letter = null) 
     96  public function getGlossaryQuery($table, $field, $letter = null) 
    9397  { 
    9498    $q = Doctrine::getTable($table) 
     
    103107    return $q; 
    104108  } 
    105   private function getLettersQuery($table, $field) 
     109   
     110  public function getLettersQuery($table, $field) 
    106111  { 
    107112    $q = Doctrine::getTable($table) 
     
    112117    return $q; 
    113118  } 
    114   private function getObjectValue($object) 
     119   
     120  protected function getObjectValue($object) 
    115121  { 
    116122    $field = $this->fields[get_class($object)]; 
    117123    return $object->$field; 
    118124  } 
    119   private function processConfig($glossary) 
     125   
     126  protected function processConfig($glossary) 
    120127  { 
    121128    foreach(sfConfig::get('app_glossary_'.$glossary) as $key => $value) 
     
    133140    } 
    134141  } 
    135   private function initGlossary() 
     142   
     143  protected function initGlossary() 
    136144  { 
    137145    $glossary = array(); 
     
    142150    return $glossary; 
    143151  } 
    144   private function hasMultipleTables() 
     152   
     153  protected function hasMultipleTables() 
    145154  { 
    146155    return (count($this->tables) > 1); 
    147156  } 
    148   private function insertArrayIndex($array, $new_element, $index)  
     157   
     158  protected function insertArrayIndex($array, $new_element, $index)  
    149159  { 
    150160    $start = array_slice($array, 0, $index);