Permalink
Browse files

Inherited methods signatures

  • Loading branch information...
1 parent ce968e8 commit 079f90644bce8f4fc82dc43d1cc301655d5c4263 @cdujeu cdujeu committed Sep 14, 2016
@@ -48,17 +48,7 @@ class Driver extends FsAccessDriver
const RESOURCES_FILE = "dropbox.json";
public $driverType = "dropbox";
-
- /**
- * Driver Initialization
- * @param $repository
- * @param array $options
- */
- public function init($repository, $options = array())
- {
- parent::init($repository, $options);
- }
-
+
/**
* Repository Initialization
* @param ContextInterface $context
@@ -175,16 +175,32 @@ protected function parseSpecificContributions(ContextInterface $ctx, \DOMNode &$
$this->disableArchiveBrowsingContributions($contribNode);
}
+ /**
+ * @param ContextInterface $contextInterface
+ * @param $nodePath
+ * @param $nodeName
+ * @param $isLeaf
+ * @param $lsOptions
+ * @return bool
+ */
public function filterNodeName(ContextInterface $contextInterface, $nodePath, $nodeName, &$isLeaf, $lsOptions)
{
return true;
}
- public function countChildren($dirName, $foldersOnly = false, $nonEmptyCheckOnly = false, $dirHandle = null)
+ /**
+ * @param AJXP_Node $dirNode
+ * @param bool $foldersOnly
+ * @param bool $nonEmptyCheckOnly
+ * @param null $dirHANDLE
+ * @return int
+ * @throws \Exception
+ */
+ public function countChildren(AJXP_Node $dirNode, $foldersOnly = false, $nonEmptyCheckOnly = false, $dirHANDLE = null)
{
if($foldersOnly) return 0;
$count = 0;
- if($tmpHandle = opendir($dirName)){
+ if($tmpHandle = opendir($dirNode->getUrl())){
// WILL USE IMAP FUNCTIONS TO COUNT;
$this->logDebug("COUNT : ".ImapAccessWrapper::getCurrentDirCount());
$count = ImapAccessWrapper::getCurrentDirCount();
@@ -22,14 +22,11 @@
namespace Pydio\Access\Driver\StreamProvider\SMB;
use DOMNode;
-
-
+use Pydio\Access\Core\Model\AJXP_Node;
use Pydio\Access\Core\RecycleBinManager;
use Pydio\Access\Core\Model\Repository;
use Pydio\Access\Driver\StreamProvider\FS\FsAccessDriver;
-
use Pydio\Core\Model\ContextInterface;
-
use Pydio\Core\Exception\PydioException;
@@ -113,12 +110,12 @@ protected function parseSpecificContributions(ContextInterface $ctx, \DOMNode &$
}
/**
- * @param \Pydio\Access\Core\Model\AJXP_Node $dir
- * @param string $type
+ * @param AJXP_Node $node
* @return bool
*/
- public function isWriteable($dir, $type="dir")
+ public function isWriteable(AJXP_Node $node)
{
+ $dir = $node->getPath();
if(substr_count($dir, '/') <= 3) $rc = true;
else $rc = is_writable($dir);
return $rc;
@@ -103,11 +103,10 @@ protected function parseSpecificContributions(ContextInterface $ctx, \DOMNode &$
}
/**
- * @param AJXP_Node $dir
- * @param string $type
+ * @param AJXP_Node $node
* @return bool
*/
- public function isWriteable($dir, $type="dir")
+ public function isWriteable(AJXP_Node $node)
{
return true;
}
@@ -144,7 +144,7 @@ public function listUsersPaginated($baseGroup, $regexp, $offset, $limit, $recurs
* @param int $offset
* @return int
*/
- public function findUserPage($baseGroup, $userLogin, $usersPerPage, $offset)
+ public function findUserPage($baseGroup, $userLogin, $usersPerPage, $offset = 0)
{
$this->connect();
$res = dibi::query("SELECT COUNT(*) FROM [" . $this->customTableName . "] WHERE [" . $this->customTableUid . "] <= %s", $userLogin);

0 comments on commit 079f906

Please sign in to comment.