public function GetArticleList($select = null, $where = null, $order = null, $limit = null, $option = null, $readtags = true)
{
if (empty($select)) {
$select = array('*');
}
if (empty($where)) {
$where = array();
}
if (is_array($where)) {
$hasType = false;
foreach ($where as $key => $value) {
if (is_array($value)) {
foreach ($value as $key2 => $value2) {
if ($key2 == 1 && $value2 == 'log_Type') {
$hasType = true;
}
}
}
}
if ($hasType == false) {
array_unshift($where, array('=', 'log_Type', '0'));
}
}
$sql = $this->db->sql->Select($this->table['Post'], $select, $where, $order, $limit, $option);
$array = $this->GetListType('Post', $sql);
foreach ($array as $a) {
$this->posts[$a->ID] = $a;
}
if ($readtags) {
$tagstring = '';
foreach ($array as $a) {
$tagstring .= $a->Tag;
}
$this->LoadTagsByIDString($tagstring);
}
return $array;
}