public function createNewIdAction($name, $type, $urlPrefix)
    {
        $newActionId = $this->insertNewAction($name, $type, $urlPrefix);

        $realFirstActionId = $this->getIdActionMatchingNameAndType($name, $type);

        // if the inserted action ID is not the same as the queried action ID, then that means we inserted
        // a duplicate, so remove it now
        if ($realFirstActionId != $newActionId) {
            $this->deleteDuplicateAction($newActionId);
        }

        return $realFirstActionId;
    }
public function createNewIdAction($name, $type, $urlPrefix)
    {
        $newActionId = $this->insertNewAction($name, $type, $urlPrefix);

        $realFirstActionId = $this->getIdActionMatchingNameAndType($name, $type);

        // if the inserted action ID is not the same as the queried action ID, then that means we inserted
        // a duplicate, so remove it now
        if ($realFirstActionId != $newActionId) {
            $this->deleteDuplicateAction($newActionId);
        }

        return $realFirstActionId;
    }
public function createNewIdAction ( $ name , $ type , $ urlPrefix ) { $ newActionId = $ this -> insertNewAction ( $ name , $ type , $ urlPrefix ) ; $ realFirstActionId = $ this -> getIdActionMatchingNameAndType ( $ name , $ type ) ; // if the inserted action ID is not the same as the queried action ID, then that means we inserted // a duplicate, so remove it now if ( $ realFirstActionId != $ newActionId ) { $ this -> deleteDuplicateAction ( $ newActionId ) ; } return $ realFirstActionId ; }
Inserts a new action into the log_action table. If there is an existing action that was inserted
due to another request pre-empting this one, the newly inserted action is deleted.

@param string $name
@param int $type
@param int $urlPrefix
@return int The ID of the action (can be for an existing action or new action).
Inserts a new action into the log_action table . If there is an existing action that was inserted due to another request pre - empting this one the newly inserted action is deleted .