Skip to content

Commit

Permalink
getLinkName() method is added!
Browse files Browse the repository at this point in the history
  • Loading branch information
vodolaz095 committed Jun 9, 2012
1 parent bfe9012 commit 978bd6f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions DB.php
Expand Up @@ -143,6 +143,20 @@ static public function setLink($link_name)
}
}


/**
* Function returns the ame of active database link used, or false if link is not setted
* @static
* @return bool
*/
static public function getLinkName()
{
$db=DB::init();
return ($db->active_link) ? $db->active_link : false;
}



/**
* Function executes MySQL query on the active database link - @see DB::setLink($link_name);
* @static
Expand Down

0 comments on commit 978bd6f

Please sign in to comment.