Remove binary adapters

This commit is contained in:
Romain Neutron
2012-04-25 13:33:15 +02:00
parent 0896b2073a
commit 97b635e6b4

View File

@@ -91,15 +91,12 @@ class databox extends base
protected static $_instances = array();
const BASE_TYPE = self::DATA_BOX;
const CACHE_META_STRUCT = 'meta_struct';
const CACHE_THESAURUS = 'thesaurus';
const CACHE_COLLECTIONS = 'collections';
const CACHE_STRUCTURE = 'structure';
const PIC_PDF = 'logopdf';
protected $cache;
protected $connection;
protected $registry;
@@ -451,7 +448,6 @@ class databox extends base
$stmt->closeCursor();
if ($row)
return self::get_instance((int) $row['sbas_id']);
try
@@ -576,8 +572,9 @@ class databox extends base
public function get_meta_structure()
{
if ($this->meta_struct)
{
return $this->meta_struct;
}
try
{
@@ -626,7 +623,9 @@ class databox extends base
public function get_subdef_structure()
{
if ( ! $this->subdef_struct)
{
$this->subdef_struct = new databox_subdefsStructure($this);
}
return $this->subdef_struct;
}
@@ -649,7 +648,7 @@ class databox extends base
$day = date('d', strtotime($date));
$n = 0;
$comp = $year . '/' . $month . '/' . $day . '/';
$comp = $year . DIRECTORY_SEPARATOR . $month . DIRECTORY_SEPARATOR . $day . DIRECTORY_SEPARATOR;
$condition = true;
@@ -659,8 +658,11 @@ class databox extends base
{
$n ++;
}
if ( ! is_dir($pathout))
{
system_file::mkdir($pathout);
}
return p4string::addEndSlash($pathout);
@@ -699,7 +701,6 @@ class databox extends base
}
}
if ($n > $limit)
return true;
return false;
@@ -1216,7 +1217,6 @@ class databox extends base
public function get_structure()
{
if ($this->structure)
return $this->structure;
$this->structure = $this->retrieve_structure();
@@ -1257,7 +1257,6 @@ class databox extends base
public function get_cterms()
{
if ($this->cterms)
return $this->cterms;
$sql = "SELECT value FROM pref WHERE prop='cterms'";
@@ -1424,7 +1423,6 @@ class databox extends base
public function get_cgus()
{
if ($this->cgus)
return $this->cgus;
$this->load_cgus();