コード例 #1
0
 /**
  * getContents()
  *
  * @return string
  */
 public function getContents()
 {
     $parser = new Zend_Tool_Project_Profile_FileParser_Xml();
     $profile = $this->_resource->getProfile();
     $xml = $parser->serialize($profile);
     return $xml;
 }
コード例 #2
0
ファイル: Profile.php プロジェクト: Yaoming9/Projet-Web-PhP
 /**
  * storeToData() - create a string representation of the profile in memory
  *
  * @return string
  */
 public function storeToData()
 {
     $parser = new Zend_Tool_Project_Profile_FileParser_Xml();
     $xml = $parser->serialize($this);
     return $xml;
 }