Issue #0001653: add login column in the worldcheck table

This commit is contained in:
Aram HARUTYUNYAN 2013-08-28 13:00:36 +00:00
parent 0212e8e6ea
commit 6eb3063e40
3 changed files with 6 additions and 3 deletions

View File

@ -33,7 +33,8 @@ class WorldcheckController extends Zend_Controller_Action
if (!$user->getScreenerName() || $user->getScreenerName()!=$param->dirNom || substr($user->getScreenerNameIdentifier(),0,3)!='so_' || $user->getNameType()!=$param->dirType)
{
$idClient = $user->getIdClient();
$localDBParams = $wcLocal->getScreenerId($idClient, $data);
$login = $user->getLogin();
$localDBParams = $wcLocal->getScreenerId($idClient, $login, $data);
$this->nameIdentifier = $localDBParams->nameIdentifier;
//Save nameIdentifier, name, matchCount into session

View File

@ -10,7 +10,7 @@ class Application_Model_Worldcheck extends Zend_Db_Table_Abstract
* @param object $data
* @return object
*/
public function getScreenerId($idClient, $data)
public function getScreenerId($idClient, $login, $data)
{
$result = new stdClass();
$sql = $this->select()
@ -26,7 +26,8 @@ class Application_Model_Worldcheck extends Zend_Db_Table_Abstract
$result->nameIdentifier = $wc->getScreener($data);
$result->matchCount = $wc->getDetailsName($result->nameIdentifier)->unresolvedMatchCount;
$param = array(
'idClient' => $idClient,
'idClient' => $idClient,
'login' => $login,
'nameIdentifier' => $result->nameIdentifier,
'matchCount' => $result->matchCount,
'name' => $data->name,

View File

@ -1,6 +1,7 @@
CREATE TABLE IF NOT EXISTS `worldcheck` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`idClient` char(5) NOT NULL,
`login` char(25) NOT NULL,
`nameIdentifier` varchar(23) NOT NULL,
`name` varchar(50) NOT NULL,
`nameType` varchar(12) NOT NULL,