Where to find V 7 equivalents for V 6 coding
Permalink
I have some code in my V 6 application that I need to rewrite for V 7
[code]
$ih = Loader::helper('image'); // For image
$av = Loader::helper('concrete/avatar');
Loader::model('user_list');
$list = new UserList();
// Get only users who are in the Member group
$list->filterByGroup("Member");
// Sort by last name
$list->sortBy("last_name", "asc");
// Fetch 200...only 119 members
$users = $list->get(200);
$attribs = UserAttributeKey::getPublicProfileList();
$userData = array();
$i = 0;
foreach($users as $user){
...
}
[\code]
Can someone point me in the general direction for a few equivalents? Once started, I should be able to find what I need.
Many thanks...
Todd
[code]
$ih = Loader::helper('image'); // For image
$av = Loader::helper('concrete/avatar');
Loader::model('user_list');
$list = new UserList();
// Get only users who are in the Member group
$list->filterByGroup("Member");
// Sort by last name
$list->sortBy("last_name", "asc");
// Fetch 200...only 119 members
$users = $list->get(200);
$attribs = UserAttributeKey::getPublicProfileList();
$userData = array();
$i = 0;
foreach($users as $user){
...
}
[\code]
Can someone point me in the general direction for a few equivalents? Once started, I should be able to find what I need.
Many thanks...
Todd
You may find this Cheat Sheet helpful
http://www.webli.us/cheatsheet/...
http://www.webli.us/cheatsheet/...
Here is a link to the general docs -https://documentation.concrete5.org/developers...
Here is a link to some information about the Avatar -https://documentation.concrete5.org/developers/users-groups/working-...
In 5.7 for images you can just do $file->getURL(); and that will give you the URL of the file you're dealing with (not sure in your code what you were using the image helper for).
As for the UserList that's going to be very much the same, here is a link to the documentation on that -https://documentation.concrete5.org/developers/users-groups/searchin...