Skip to content

Instantly share code, notes, and snippets.

View artshevtsov's full-sized avatar

Artem Shevtsov artshevtsov

  • Saint-Petersburg
View GitHub Profile
/** Получить все выборки для удаления аккаунта
* @return array
*/
public function getDeleteQueries() {
//Source Object Attached
$q['crm_source_object_attached'] = "DELETE csoa FROM `crm_source_object_attached` csoa JOIN ``";
// Phone Attached
$account_type = ObjectType::ACCOUNT;
$q['crm_phone_attached'] = "DELETE FROM `crm_phone_attached` WHERE object_id = ?d AND object_type_id = $account_type";
<strong ng-switch="$ctrl.current_client['type']">
<span ng-switch-when="1">{{ $ctrl.current_client['name'] }}</span>
<span ng-switch-default>{{ $ctrl.current_client['last_name'] }} {{ $ctrl.current_client['first_name'] }}</span>
</strong>