"source": {
"type": "git",
"url": "git://git.andy128k.net/missing-tools.git",
- "reference": "a8674960793b9c9fb3a90b83558f972a28f7ed75"
+ "reference": "5e4d636d7de3ee2cd6037e82f733950dda88a8b5"
},
"require": {
"andy128k/pegp": "0.1.*@dev",
"src/"
]
},
+ "scripts": {
+ "test": [
+ "phpunit ./t"
+ ]
+ },
"license": [
"MIT"
],
}
],
"description": "Miscellaneous utilities",
- "time": "2016-11-05T14:33:30+00:00"
+ "time": "2019-03-10T17:05:21+00:00"
},
{
"name": "andy128k/pegp",
$this->fields['roles'] = new \IPF_Admin_Form_Field_MultipleChoice(array(
'label' => __('Groups'),
'help_text' => __('In addition to the permissions manually assigned, this user will also get all permissions granted to each group he/she is in.'),
- 'choices' => array_column(Role::all(), 'id', 'name'),
+ 'choices' => \PFF\Collection::columnByProperty(Role::all(), 'id', 'name'),
));
}
' LIMIT ' . $pageSize .
' OFFSET ' . (($page - 1) * $pageSize)
);
- return array_column($items, null, 'id');
+ return \PFF\Collection::indexByProperty($items, 'id');
}
public function itemsCount($searchValue, $filters)
' LIMIT ' . $pageSize .
' OFFSET ' . (($page - 1) * $pageSize)
);
- return array_column($items, null, 'id');
+ return \PFF\Collection::indexByProperty($items, 'id');
}
public function itemsCount($searchValue, $filters)