original_string: public function getAllColumnsets($dc)
  	{
  		$collection = ColumnsetModel::findBy('published=1 AND columns', $dc->activeRecord->sc_type, array('order' => 'title'));
  		$set = array();
  
  		if($collection !== null)
  		{
  			while($collection->next()) {
  				$set[$collection->id] = $collection->title;
  			}
  		}
  
  		return $set;
  	}
code: public function getAllColumnsets($dc)
  	{
  		$collection = ColumnsetModel::findBy('published=1 AND columns', $dc->activeRecord->sc_type, array('order' => 'title'));
  		$set = array();
  
  		if($collection !== null)
  		{
  			while($collection->next()) {
  				$set[$collection->id] = $collection->title;
  			}
  		}
  
  		return $set;
  	}
code_tokens: public function getAllColumnsets ( $ dc ) { $ collection = ColumnsetModel :: findBy ( 'published=1 AND columns' , $ dc -> activeRecord -> sc_type , array ( 'order' => 'title' ) ) ; $ set = array ( ) ; if ( $ collection !== null ) { while ( $ collection -> next ( ) ) { $ set [ $ collection -> id ] = $ collection -> title ; } } return $ set ; }
docstring: get all columnsets which fits to the selected type
  @param $dc
  @return array
docstring_tokens: get all columnsets which fits to the selected type