/** * Returns the number of channels of the postbox which are *NOT* in a folder. * * @return int */ public function countChannelsWithoutFolder() { $result = $this->ORM->getDBDriver()->executeStatement('extensions::postbox', 'Postbox_countChannelsWithoutFolder.sql', ['UserID' => (int) $this->User->getObjectId()]); return (int) $this->ORM->getDBDriver()->getNumRows($result); }