Commit 560421b5 authored by Janur J.'s avatar Janur J.
Browse files

Merging

parents 1ad473e6 77eb4d9d
......@@ -8,11 +8,16 @@
<li>Bug #2346: View category page gives 404</li>
<li>Bug #2349: Ugly search filters</li>
<li>Bug #2350: Default sorting for listings grid</li>
<li>Bug #2351: Undefined index on listing submission page</li>
<li>Bug #2354: Migrate actions to new format</li>
<li>Bug #2358: Migrate crossed query to class</li>
<li>Feature #265: Implement a way to create different fields for different categories</li>
<li>Feature #268: Listing submissions for accounts only</li>
<li>Feature #1966: Add functionality for Add Listing link in the Web Directory menu that will pre-select category id</li>
<li>Feature #2012: Add email field to listings table</li>
<li>Feature #2333: Ability to report broken listings</li>
<li>Feature #2352: Add to bookmarks more accented</li>
<li>Feature #2356: Please update screenshots</li>
</ul>
</li>
<li>Version: 4.0.0
......
......@@ -112,6 +112,13 @@ class iaCateg extends abstractDirectoryPackageFront
$iaDb->query($update_parent);
}
/**
* Returns crossed categories array by a given listing id
*
* @param int $id listing id
*
* @return mixed
*/
public function getCrossedByListingId($listingId)
{
$this->iaCore->factoryPackage('listing', $this->getPackageName());
......
......@@ -172,14 +172,14 @@ class iaListing extends abstractDirectoryPackageFront
return false;
}
public function checkDuplicateListings($domain, $aUrl)
{
$sql = "SELECT COUNT(`id`) ";
$sql .= "FROM " . self::getTable(true) . " ";
$cause = ('domain' == $aUrl) ? "WHERE `domain` = '{$aUrl}'" : "WHERE `url` = '{$aUrl}'";
$sql .= ('contain' == $domain) ? "WHERE `url` LIKE '%{$aUrl}%'" : $cause;
return $this->iaDb->getOne($sql);
}
public function checkDuplicateListings($domain, $aUrl)
{
$sql = "SELECT COUNT(`id`) ";
$sql .= "FROM " . self::getTable(true) . " ";
$cause = ('domain' == $aUrl) ? "WHERE `domain` = '{$aUrl}'" : "WHERE `url` = '{$aUrl}'";
$sql .= ('contain' == $domain) ? "WHERE `url` LIKE '%{$aUrl}%'" : $cause;
return $this->iaDb->getOne($sql);
}
public function insert(array $entryData)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment