Release commit (1.7)

This commit is contained in:
RainLoop Team 2014-11-15 00:23:46 +04:00
parent d5c68d1761
commit 7b97a9f85d
25 changed files with 118 additions and 74 deletions

View file

@ -19,7 +19,7 @@ class ChangePasswordExampleDriver implements \RainLoop\Providers\ChangePassword\
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
*
* @return bool
*/
@ -30,7 +30,7 @@ class ChangePasswordExampleDriver implements \RainLoop\Providers\ChangePassword\
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
* @param string $sPrevPassword
* @param string $sNewPassword
*

View file

@ -8,12 +8,12 @@ class ChangeSmtpEhloMessagePlugin extends \RainLoop\Plugins\AbstractPlugin
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
* @param array $aSmtpCredentials
*/
public function FilterSmtpCredentials($oAccount, &$aSmtpCredentials)
{
if ($oAccount instanceof \RainLoop\Account && \is_array($aSmtpCredentials))
if ($oAccount instanceof \RainLoop\Model\Account && \is_array($aSmtpCredentials))
{
// Default:
// $aSmtpCredentials['Ehlo'] = \MailSo\Smtp\SmtpClient::EhloHelper();

View file

@ -84,7 +84,7 @@ class CpanelChangePasswordDriver implements \RainLoop\Providers\ChangePassword\C
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
*
* @return bool
*/
@ -95,7 +95,7 @@ class CpanelChangePasswordDriver implements \RainLoop\Providers\ChangePassword\C
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
* @param string $sPrevPassword
* @param string $sNewPassword
*

View file

@ -40,7 +40,7 @@ class CustomSystemFoldersPlugin extends \RainLoop\Plugins\AbstractPlugin
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
* @param array $aSystemTypes
*/
public function FilterFoldersSystemTypes($oAccount, &$aSystemTypes)
@ -88,7 +88,7 @@ class CustomSystemFoldersPlugin extends \RainLoop\Plugins\AbstractPlugin
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
* @param array $aSystemFolderNames
*/
public function FilterSystemFoldersNames($oAccount, &$aSystemFolderNames)
@ -110,7 +110,7 @@ class CustomSystemFoldersPlugin extends \RainLoop\Plugins\AbstractPlugin
$this->helperFolderType($this->sArchiveFolder, \MailSo\Imap\Enumerations\FolderType::ALL,
$aPrepend, $aSystemFolderNames);
if (0 < \count($aPrepend))
{
$aSystemFolderNames = \array_merge($aPrepend, $aSystemFolderNames);

View file

@ -63,7 +63,7 @@ class HmailserverChangePasswordDriver implements \RainLoop\Providers\ChangePassw
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
*
* @return bool
*/
@ -74,7 +74,7 @@ class HmailserverChangePasswordDriver implements \RainLoop\Providers\ChangePassw
}
/**
* @param \RainLoop\Account $oHmailAccount
* @param \RainLoop\Model\Account $oHmailAccount
* @param string $sPrevPassword
* @param string $sNewPassword
*

View file

@ -70,7 +70,7 @@ class IspConfigChangePasswordDriver implements \RainLoop\Providers\ChangePasswor
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
*
* @return bool
*/
@ -81,7 +81,7 @@ class IspConfigChangePasswordDriver implements \RainLoop\Providers\ChangePasswor
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
* @param string $sPrevPassword
* @param string $sNewPassword
*

View file

@ -8,12 +8,12 @@ class OverrideSmtpCredentialsPlugin extends \RainLoop\Plugins\AbstractPlugin
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
* @param array $aSmtpCredentials
*/
public function FilterSmtpCredentials($oAccount, &$aSmtpCredentials)
{
if ($oAccount instanceof \RainLoop\Account && \is_array($aSmtpCredentials))
if ($oAccount instanceof \RainLoop\Model\Account && \is_array($aSmtpCredentials))
{
$sEmail = $oAccount->Email();

View file

@ -71,7 +71,7 @@ class ChangePasswordPoppassdDriver implements \RainLoop\Providers\ChangePassword
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
*
* @return bool
*/
@ -82,7 +82,7 @@ class ChangePasswordPoppassdDriver implements \RainLoop\Providers\ChangePassword
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
* @param string $sPrevPassword
* @param string $sNewPassword
*

View file

@ -135,7 +135,7 @@ class ChangePasswordPostfixAdminDriver implements \RainLoop\Providers\ChangePass
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
*
* @return bool
*/
@ -146,7 +146,7 @@ class ChangePasswordPostfixAdminDriver implements \RainLoop\Providers\ChangePass
}
/**
* @param \RainLoop\Account $oAccount
* @param \RainLoop\Model\Account $oAccount
* @param string $sPrevPassword
* @param string $sNewPassword
*

View file

@ -8,11 +8,20 @@ class ProxyauthLoginExamplePlugin extends \RainLoop\Plugins\AbstractPlugin
}
/**
* @param \RainLoop\Account $oAccount
* @param string $sLogin
* @param string $sPassword
*/
public function isValidAccount($sLogin, $sPassword)
{
return !empty($sLogin) && !empty($sPassword);
}
/**
* @param \RainLoop\Model\Account $oAccount
*/
public function EventLoginPostLoginProvide(&$oAccount)
{
if ($oAccount instanceof \RainLoop\Account)
if ($oAccount instanceof \RainLoop\Model\Account)
{
// Verify logic
$bValid = isValidAccount($oAccount->Login(), $oAccount->Password());
@ -23,10 +32,10 @@ class ProxyauthLoginExamplePlugin extends \RainLoop\Plugins\AbstractPlugin
* $oAccount->Password(); // IMAP password
* $oAccount->DomainIncHost(); // IMAP host
*
* @see \RainLoo\Account for more
* @see \RainLoo\Model\Account for more
*/
if ($bValid) // if verify failed
if (!$bValid) // if verify failed
{
// throw a Auth Error Exception
throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::AuthError);