mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 17:58:59 +00:00
24fa162413
[ci skip] [skip ci]
41 lines
717 B
PHP
41 lines
717 B
PHP
<?php
|
|
|
|
namespace nntmux;
|
|
|
|
/**
|
|
* Class for reading and writing NZB files on the hard disk,
|
|
* building folder paths to store the NZB files.
|
|
*/
|
|
class NZBMultiGroup extends NZB
|
|
{
|
|
/**
|
|
* Default constructor.
|
|
*
|
|
*
|
|
* @param $pdo
|
|
*
|
|
* @throws \Exception
|
|
*/
|
|
public function __construct(&$pdo)
|
|
{
|
|
parent::__construct($pdo);
|
|
}
|
|
|
|
/**
|
|
* Initiate class vars when writing NZB's.
|
|
*
|
|
*
|
|
* @param int $groupID
|
|
*/
|
|
public function initiateForWrite($groupID)
|
|
{
|
|
$this->_tableNames = [
|
|
'cName' => 'multigroup_collections',
|
|
'bName' => 'multigroup_binaries',
|
|
'pName' => 'multigroup_parts',
|
|
];
|
|
|
|
$this->setQueries();
|
|
}
|
|
}
|