Minor kodoc updates and fixes
This commit is contained in:
parent
0ee23bf06e
commit
4793a4b74c
@ -3,8 +3,7 @@
|
||||
/**
|
||||
* LDAP Auth driver.
|
||||
*
|
||||
* @package Auth/LDAP
|
||||
* @category Helpers
|
||||
* @package Kohana/Auth
|
||||
* @author Deon George
|
||||
* @copyright (c) 2013 phpLDAPadmin Development Team
|
||||
* @license http://dev.phpldapadmin.org/license.html
|
||||
|
@ -3,8 +3,8 @@
|
||||
/**
|
||||
* This class takes care of communicating with LDAP
|
||||
*
|
||||
* @package Kohana/LDAP
|
||||
* @category Database/LDAP
|
||||
* @package Kohana/Database
|
||||
* @category Drivers
|
||||
* @author Deon George
|
||||
* @copyright (c) 2013 phpLDAPadmin Development Team
|
||||
* @license http://dev.phpldapadmin.org/license.html
|
||||
|
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* LDAP database result. See [Results](/database/results) for usage and examples.
|
||||
*
|
||||
* @package Kohana/LDAP
|
||||
* @package Kohana/Database
|
||||
* @category Query/Result
|
||||
* @author Deon George
|
||||
* @copyright (c) 2013 phpLDAPadmin Development Team
|
||||
|
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* Object used for caching the results of select queries. See [Results](/database/results#select-cached) for usage and examples.
|
||||
*
|
||||
* @package Kohana/LDAP
|
||||
* @package Kohana/Database
|
||||
* @category Query/Result
|
||||
* @author Deon George
|
||||
* @copyright (c) 2013 phpLDAPadmin Development Team
|
||||
|
@ -3,8 +3,8 @@
|
||||
/**
|
||||
* This class takes care of searching within LDAP
|
||||
*
|
||||
* @package Kohana/LDAP
|
||||
* @category Helpers
|
||||
* @package Kohana/Database
|
||||
* @category Query
|
||||
* @author Deon George
|
||||
* @copyright (c) 2013 phpLDAPadmin Development Team
|
||||
* @license http://dev.phpldapadmin.org/license.html
|
||||
|
@ -3,8 +3,8 @@
|
||||
/**
|
||||
* This class takes care of building an LDAP filter query
|
||||
*
|
||||
* @package Kohana/LDAP
|
||||
* @category Helpers
|
||||
* @package Kohana/Database
|
||||
* @category Query
|
||||
* @author Deon George
|
||||
* @copyright (c) 2013 phpLDAPadmin Development Team
|
||||
* @license http://dev.phpldapadmin.org/license.html
|
||||
|
@ -3,8 +3,8 @@
|
||||
/**
|
||||
* Return the query search result.
|
||||
*
|
||||
* @package Kohana/LDAP
|
||||
* @category Query
|
||||
* @package Kohana/Database
|
||||
* @category Query/Result
|
||||
* @author Deon George
|
||||
* @copyright (c) 2013 phpLDAPadmin Development Team
|
||||
* @license http://dev.phpldapadmin.org/license.html
|
||||
|
@ -3,8 +3,7 @@
|
||||
/**
|
||||
* This class takes care of communicating with LDAP
|
||||
*
|
||||
* @package Kohana/LDAP
|
||||
* @category Database/LDAP
|
||||
* @package Kohana/Database
|
||||
* @author Deon George
|
||||
* @copyright (c) 2013 phpLDAPadmin Development Team
|
||||
* @license http://dev.phpldapadmin.org/license.html
|
||||
|
@ -3,8 +3,7 @@
|
||||
/**
|
||||
* Kohana ORM LDAP Extension
|
||||
*
|
||||
* @package LDAP/ORM
|
||||
* @category Helpers
|
||||
* @package Kohana/ORM
|
||||
* @author Deon George
|
||||
* @copyright (c) 2013 phpLDAPadmin Development Team
|
||||
* @license http://dev.phpldapadmin.org/license.html
|
||||
@ -14,6 +13,7 @@ abstract class Kohana_ORM_LDAP extends ORM {
|
||||
protected $_disable_join_table_name = TRUE;
|
||||
protected $_primary_key = 'dn';
|
||||
protected $_sub_items = array();
|
||||
// protected $_db_group = 'default';
|
||||
|
||||
public function __construct($id = NULL) {
|
||||
// We'll process our $id
|
||||
@ -153,7 +153,7 @@ abstract class Kohana_ORM_LDAP extends ORM {
|
||||
}
|
||||
}
|
||||
|
||||
if ($col = 'dn' AND $val)
|
||||
if ($col == 'dn' AND $val)
|
||||
$model->base($val)->find();
|
||||
else
|
||||
$model->where($col, '=', $val)->find();
|
||||
|
@ -3,23 +3,13 @@
|
||||
/**
|
||||
* This class provides our ORM interaction with LDAP
|
||||
*
|
||||
* @package Kohana/LDAP
|
||||
* @category Model/LDAP
|
||||
* @package Kohana/Database
|
||||
* @category Models
|
||||
* @author Deon George
|
||||
* @copyright (c) 2013 phpLDAPadmin Development Team
|
||||
* @license http://dev.phpldapadmin.org/license.html
|
||||
*/
|
||||
class Model_LDAP extends ORM_LDAP {
|
||||
public $_reload_on_wakeup = FALSE;
|
||||
|
||||
protected $_has_one = array(
|
||||
'bp_manager'=>array('model'=>'LDAP','foreign_key'=>'dn','far_key'=>'manager'),
|
||||
'tl_manager'=>array('model'=>'LDAP','foreign_key'=>'dn','far_key'=>'glteamlead'),
|
||||
);
|
||||
|
||||
// Unused - by required for page rendering for admin menu items
|
||||
public function isAdmin() {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user