/** * __construct() - Sets configuration options * * @param DbAdapter $zendDb * @param string $tableName Optional * @param string $identityColumn Optional * @param string $credentialColumn Optional * @param string $credentialTreatment Optional */ public function __construct(DbAdapter $zendDb, $tableName = null, $identityColumn = null, $credentialColumn = null, $credentialTreatment = null) { parent::__construct($zendDb, $tableName, $identityColumn, $credentialColumn); if (null !== $credentialTreatment) { $this->setCredentialTreatment($credentialTreatment); } }
/** * __construct() - Sets configuration options * * @param DbAdapter $zendDb * @param string $tableName Optional * @param string $identityColumn Optional * @param string $credentialColumn Optional * @param callable $credentialValidationCallback Optional */ public function __construct(DbAdapter $zendDb, $tableName = null, $identityColumn = null, $credentialColumn = null, $credentialValidationCallback = null) { parent::__construct($zendDb, $tableName, $identityColumn, $credentialColumn); if (null !== $credentialValidationCallback) { $this->setCredentialValidationCallback($credentialValidationCallback); } else { $this->setCredentialValidationCallback(function ($a, $b) { return $a === $b; }); } }