ZendDbSchema
Schema management for Zend Framework
 All Classes Namespaces Functions Pages
Directory.php
1 <?php
30  extends Zend_Tool_Project_Context_Filesystem_Directory
31 {
35  protected $_filesystemName = 'migrations';
36 
40  protected $_version;
41 
47  public function getName()
48  {
49  return 'MigrationsDirectory';
50  }
51 
57  public function init()
58  {
59  $this->_version = $this->_resource->getAttribute('version');
60  parent::init();
61  return $this;
62  }
63 
69  public function getPersistentAttributes()
70  {
71  return array(
72  'version' => $this->getVersion()
73  );
74  }
75 
82  public function setVersion($version)
83  {
84  $this->_version = $version;
85  return $this;
86  }
87 
93  public function getVersion()
94  {
95  return $this->_version;
96  }
97 }