예제 #1
0
파일: Database.php 프로젝트: aiesh/magento2
 /**
  * Returns list of available resources
  *
  * @return array
  */
 public function toOptionArray()
 {
     $resourceOptions = array();
     foreach (array_keys($this->_arguments->getResources()) as $resourceName) {
         $resourceOptions[] = array('value' => $resourceName, 'label' => $resourceName);
     }
     sort($resourceOptions);
     reset($resourceOptions);
     return $resourceOptions;
 }
예제 #2
0
 public function testGetResources()
 {
     $this->assertEquals(self::$fixtureConfig['resource'], $this->_arguments->getResources());
     $this->assertEquals(self::$fixtureConfigMerged['resource'], $this->_argumentsMerged->getResources());
 }
예제 #3
0
파일: Proxy.php 프로젝트: aiesh/magento2
 /**
  * {@inheritdoc}
  */
 public function getResources()
 {
     return $this->subject->getResources();
 }