PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » LiveUser_Admin » Bug #2964

apps by define_name

Details

Request #2964apps by define_name
Submitted2004-12-14 12:52 UTC
Fromfabio at bs2 dot com dot br
StatusClosed
PackageLiveUser_Admin
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2004-12-14 12:52 UTC] fabio at bs2 dot com dot br

Description:
------------
1) translations be optional to admin class (e.g. the function getApplications require that tranlation exits to get an application).

2) you may do a function to get an application_id by define_name field. An suggestion to the function implementation:

function getAppByDefineName($define_name){
if (!isset($define_name) || !is_string($define_name))
return array();
$query = 'SELECT
applications.application_id AS application_id,
applications.application_define_name AS define_name
FROM
' . $this->prefix . 'applications applications
WHERE
applications.application_define_name = ' .$this->dbc->getValue('text', $define_name)
.'ORDER BY
applications.application_define_name ASC';

$applications = $this->dbc->queryAll($query, null, MDB_FETCHMODE_ASSOC);

return $applications;
}

[2004-12-15 00:14 UTC] smith at backendmedia dot com

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.

You will love our new admin API. You can now freely define what filters to use, what fields to fetch etc. The joining will be done as needed. So you can choose to not include the transations and you can filter by any of the define names etc.