| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class Typo3 |
||
| 21 | extends \Aimeos\MShop\Customer\Manager\Address\Standard |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Returns the attributes that can be used for searching. |
||
| 25 | * |
||
| 26 | * @param bool $withsub Return also attributes of sub-managers if true |
||
| 27 | * @return \Aimeos\Base\Criteria\Attribute\Iface[] List of search attribute items |
||
| 28 | */ |
||
| 29 | public function getSearchAttributes( bool $withsub = true ) : array |
||
| 30 | { |
||
| 31 | return array_replace( parent::getSearchAttributes( $withsub ), $this->createAttributes( [ |
||
| 32 | 'customer.address.id' => [ |
||
| 33 | 'label' => 'Customer address ID', |
||
| 34 | 'internalcode' => 'id', |
||
| 35 | 'internaldeps' => ['LEFT JOIN "fe_users_address" AS mcusad ON ( mcus."uid" = mcusad."parentid" )'], |
||
| 36 | 'type' => 'int', |
||
| 37 | 'public' => false, |
||
| 38 | ] |
||
| 39 | ] ) ); |
||
| 40 | } |
||
| 41 | |||
| 42 | |||
| 43 | /** |
||
| 44 | * Returns the name of the used table |
||
| 45 | * |
||
| 46 | * @return string Table name |
||
| 47 | */ |
||
| 48 | protected function getTable() : string |
||
| 51 | } |
||
| 52 | } |
||
| 53 |