application/modules/core/models/Base/Route.php 1 location
|
@@ 1194-1208 (lines=15) @@
|
| 1191 |
|
* |
| 1192 |
|
* @return int Hashcode |
| 1193 |
|
*/ |
| 1194 |
|
public function hashCode() |
| 1195 |
|
{ |
| 1196 |
|
$validPk = null !== $this->getId(); |
| 1197 |
|
|
| 1198 |
|
$validPrimaryKeyFKs = 0; |
| 1199 |
|
$primaryKeyFKs = []; |
| 1200 |
|
|
| 1201 |
|
if ($validPk) { |
| 1202 |
|
return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE)); |
| 1203 |
|
} elseif ($validPrimaryKeyFKs) { |
| 1204 |
|
return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE)); |
| 1205 |
|
} |
| 1206 |
|
|
| 1207 |
|
return spl_object_hash($this); |
| 1208 |
|
} |
| 1209 |
|
|
| 1210 |
|
/** |
| 1211 |
|
* Returns the primary key for this object (row). |
application/modules/xbanners/models/Base/BannerImage.php 1 location
|
@@ 1476-1490 (lines=15) @@
|
| 1473 |
|
* |
| 1474 |
|
* @return int Hashcode |
| 1475 |
|
*/ |
| 1476 |
|
public function hashCode() |
| 1477 |
|
{ |
| 1478 |
|
$validPk = null !== $this->getId(); |
| 1479 |
|
|
| 1480 |
|
$validPrimaryKeyFKs = 0; |
| 1481 |
|
$primaryKeyFKs = []; |
| 1482 |
|
|
| 1483 |
|
if ($validPk) { |
| 1484 |
|
return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE)); |
| 1485 |
|
} elseif ($validPrimaryKeyFKs) { |
| 1486 |
|
return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE)); |
| 1487 |
|
} |
| 1488 |
|
|
| 1489 |
|
return spl_object_hash($this); |
| 1490 |
|
} |
| 1491 |
|
|
| 1492 |
|
/** |
| 1493 |
|
* Returns the primary key for this object (row). |
application/modules/xbanners/models/Base/Banners.php 1 location
|
@@ 1247-1261 (lines=15) @@
|
| 1244 |
|
* |
| 1245 |
|
* @return int Hashcode |
| 1246 |
|
*/ |
| 1247 |
|
public function hashCode() |
| 1248 |
|
{ |
| 1249 |
|
$validPk = null !== $this->getId(); |
| 1250 |
|
|
| 1251 |
|
$validPrimaryKeyFKs = 0; |
| 1252 |
|
$primaryKeyFKs = []; |
| 1253 |
|
|
| 1254 |
|
if ($validPk) { |
| 1255 |
|
return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE)); |
| 1256 |
|
} elseif ($validPrimaryKeyFKs) { |
| 1257 |
|
return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE)); |
| 1258 |
|
} |
| 1259 |
|
|
| 1260 |
|
return spl_object_hash($this); |
| 1261 |
|
} |
| 1262 |
|
|
| 1263 |
|
/** |
| 1264 |
|
* Returns the primary key for this object (row). |