Magento CMS Page menu

We can put this function in helper of any extension and call from theme. or you we can put this directly from theme. :)
or create a file template/page/html/leftmeu.phtml
and add block

 <block type="page/html_header" name="leftmenu" as="leftmenu" template="page/html/leftmenu.phtml"/> 

in page.xml (above or below breadcrumbs)
then you can call from theme

 <?php echo $this->getChildHtml('leftmenu') ?>

public function getcmsdata()
	$cncollection = Mage::getModel('cms/page')->getCollection()->addStoreFilter(Mage::app()->getStore()->getId());
	$cncollection->getSelect()->where('is_active = 1'); 
	foreach ($cncollection as $page)
			$PageData = $page->getData();
			if($PageData['menu']!= 'false') 
			$lnk[] =array('value'=>Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).$PageData['identifier'], 'label'=>$PageData['title']);
		return $lnk;