Exemplo n.º 1
0
 public function getRoles()
 {
     $roles = array();
     foreach ($this->roles->getValues() as $roleObject) {
         $roles[] = $roleObject->getName();
     }
     return $roles;
 }
 function it_applies_choice_filter_on_datasource_for_collection_value(FilterDatasourceAdapterInterface $datasource, Collection $collection, $utility)
 {
     $collection->count()->willReturn(2);
     $collection->getValues()->willReturn(['foo', 'bar']);
     $utility->applyFilter($datasource, 'data_name_key', 'IN', ['foo', 'bar'])->shouldBeCalled();
     $this->apply($datasource, ['value' => $collection, 'type' => AjaxChoiceFilterType::TYPE_CONTAINS]);
 }
Exemplo n.º 3
0
 public function testGetValues()
 {
     $this->_coll[] = 'one';
     $this->_coll[] = 'two';
     $this->assertEquals(array('one', 'two'), $this->_coll->getValues());
 }
 /**
  * {@inheritdoc}
  */
 public function getValues()
 {
     $this->initialize();
     return $this->coll->getValues();
 }
Exemplo n.º 5
0
 /**
  * Get role.
  *
  * @return array
  */
 public function getRoles()
 {
     return $this->roles->getValues();
 }
Exemplo n.º 6
0
 /**
  * Get user list from group
  * @return array
  */
 public function getUsers()
 {
     return $this->users->getValues();
 }
Exemplo n.º 7
0
 /**
  * Get options.
  *
  * @return array
  */
 public function getOptions($ac = false)
 {
     return $ac ? $this->options : $this->options->getValues();
 }
Exemplo n.º 8
0
 /**
  * Get consolidated accounts collection
  *
  * @return ConsolidatedAccountsCollection
  */
 public function getConsolidatedAccountsCollection()
 {
     $elements = array_merge(array($this), $this->consolidatedAccounts->getValues());
     return new ConsolidatedAccountsCollection($elements);
 }
 public static function buildOrderFulfillmentsData(Collection $collection)
 {
     return array_map(function (OrderFulfillment $fulfillment) {
         return $fulfillment->buildOrderFulfillmentData();
     }, $collection->getValues());
 }
Exemplo n.º 10
0
 /**
  * Get API Settings.
  *
  * @return array
  */
 public function getApiSettings()
 {
     return $this->apiSettings->getValues();
 }
Exemplo n.º 11
0
 /**
  * Get account.
  *
  * @return array
  */
 public function getAccounts()
 {
     return $this->accounts->getValues();
 }
Exemplo n.º 12
0
 /**
  *
  * @param bool $ac        	
  *
  * @return Collection $events
  */
 public function getEvents($ac = false)
 {
     return $ac ? $this->events : $this->events->getValues();
 }
 /**
  * {@inheritdoc}
  */
 public function getValues()
 {
     return $this->inner->getValues();
 }
Exemplo n.º 14
0
 /**
  * {@inheritDoc}
  */
 public function getValues()
 {
     return $this->collection->getValues();
 }
Exemplo n.º 15
0
 /**
  * @dataProvider provideCollection
  */
 public function testGetValues(Collection $coll, array $elements)
 {
     $this->assertSame(array_values($elements), $coll->getValues());
 }
Exemplo n.º 16
0
 /**
  * Get groups
  *
  * @return array
  */
 public function getGroups()
 {
     return $this->groups->getValues();
 }